summaryrefslogtreecommitdiff
path: root/src/systemd/src/basic/prioq.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemd/src/basic/prioq.c')
-rw-r--r--src/systemd/src/basic/prioq.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/systemd/src/basic/prioq.c b/src/systemd/src/basic/prioq.c
index 809e2122c8..64ad638e91 100644
--- a/src/systemd/src/basic/prioq.c
+++ b/src/systemd/src/basic/prioq.c
@@ -64,9 +64,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) {