summaryrefslogtreecommitdiff
path: root/src/systemd-nspawn/nspawn-settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemd-nspawn/nspawn-settings.c')
-rw-r--r--src/systemd-nspawn/nspawn-settings.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/systemd-nspawn/nspawn-settings.c b/src/systemd-nspawn/nspawn-settings.c
index 0886451eb0..6c1614b276 100644
--- a/src/systemd-nspawn/nspawn-settings.c
+++ b/src/systemd-nspawn/nspawn-settings.c
@@ -102,9 +102,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) {