]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/libsystemd-network/sd-lldp.c
tree-wide: use mfree more
[thirdparty/systemd.git] / src / libsystemd-network / sd-lldp.c
index 0bd1e66aa077da7087ce28b5ba0bc3897ed157ca..0702241506b1522d82e26a580bc77464a5c943b4 100644 (file)
@@ -374,9 +374,7 @@ _public_ sd_lldp* sd_lldp_unref(sd_lldp *lldp) {
 
         hashmap_free(lldp->neighbor_by_id);
         prioq_free(lldp->neighbor_by_expiry);
-        free(lldp);
-
-        return NULL;
+        return mfree(lldp);
 }
 
 _public_ int sd_lldp_new(sd_lldp **ret) {