]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/nspawn/nspawn-settings.c
tree-wide: use mfree more
[thirdparty/systemd.git] / src / nspawn / nspawn-settings.c
index 5f1522cfb689cd1bf29ac10c0d21ea45d4649412..09c8f070baaaf0adbddcb6679194e7ca17c9bf4d 100644 (file)
@@ -101,9 +101,7 @@ Settings* settings_free(Settings *s) {
         expose_port_free_all(s->expose_ports);
 
         custom_mount_free_all(s->custom_mounts, s->n_custom_mounts);
-        free(s);
-
-        return NULL;
+        return mfree(s);
 }
 
 bool settings_private_network(Settings *s) {