diff options
Diffstat (limited to 'src/systemd-timesyncd/timesyncd-server.c')
-rw-r--r-- | src/systemd-timesyncd/timesyncd-server.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/systemd-timesyncd/timesyncd-server.c b/src/systemd-timesyncd/timesyncd-server.c index b4cac7c6ed..1a2138589b 100644 --- a/src/systemd-timesyncd/timesyncd-server.c +++ b/src/systemd-timesyncd/timesyncd-server.c @@ -62,8 +62,7 @@ ServerAddress* server_address_free(ServerAddress *a) { manager_set_server_address(a->name->manager, NULL); } - free(a); - return NULL; + return mfree(a); } int server_name_new( @@ -138,9 +137,7 @@ ServerName *server_name_free(ServerName *n) { log_debug("Removed server %s.", n->string); free(n->string); - free(n); - - return NULL; + return mfree(n); } void server_name_flush_addresses(ServerName *n) { |