| 90 | } |
| 91 | |
| 92 | static char *daemon_string_dup(const char *value) { |
| 93 | size_t length = strlen(value); |
| 94 | char *copy = malloc(length + 1); |
| 95 | if (copy) { |
| 96 | memcpy(copy, value, length + 1); |
| 97 | } |
| 98 | return copy; |
| 99 | } |
| 100 | |
| 101 | static void free_subscriptions(cbm_daemon_subscription_t *subscription) { |
| 102 | while (subscription) { |
no outgoing calls
no test coverage detected