]> git.proxmox.com Git - systemd.git/blobdiff - src/shared/loop-util.c
New upstream version 236
[systemd.git] / src / shared / loop-util.c
index 047e213634e80c0f9b29a2bbbabef71f48309aef..097de690e5ba9fad0db53fac3d869da93bd6b60a 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1+ */
 /***
   This file is part of systemd.
 
@@ -151,9 +152,7 @@ LoopDevice* loop_device_unref(LoopDevice *d) {
         }
 
         free(d->node);
-        free(d);
-
-        return NULL;
+        return mfree(d);
 }
 
 void loop_device_relinquish(LoopDevice *d) {