]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/prioq.c
Add SPDX license identifiers to source files under the LGPL
[thirdparty/systemd.git] / src / basic / prioq.c
index d2ec516d297ccaca972cb8d9d85bb36e600c8716..407b17e9bf481021116052093bf184656ef99033 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1+ */
 /***
   This file is part of systemd.
 
@@ -62,9 +63,7 @@ Prioq* prioq_free(Prioq *q) {
                 return NULL;
 
         free(q->items);
-        free(q);
-
-        return NULL;
+        return mfree(q);
 }
 
 int prioq_ensure_allocated(Prioq **q, compare_func_t compare_func) {