]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/libsystemd-network/sd-ndisc.c
tree-wide: use mfree more
[thirdparty/systemd.git] / src / libsystemd-network / sd-ndisc.c
index 07b0d7f70493909bb626de9486d65b90880bc725..1d3be9b86239ca61227068a8b62e932175142d78 100644 (file)
@@ -148,9 +148,7 @@ _public_ sd_ndisc *sd_ndisc_unref(sd_ndisc *nd) {
 
         ndisc_reset(nd);
         sd_ndisc_detach_event(nd);
-        free(nd);
-
-        return NULL;
+        return mfree(nd);
 }
 
 _public_ int sd_ndisc_new(sd_ndisc **ret) {