X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbasic%2Fprioq.c;h=4570b8e4baab44afa49ef667257833be54568fde;hp=d55b348c22f2ec82d13d2dacff33dcc3f808abb7;hb=2a4a438b7c7306da5f698d2247e646263f3c45c0;hpb=3cd22db822df747636dcf30ebb8ec5d16bb71880 diff --git a/src/basic/prioq.c b/src/basic/prioq.c index d55b348c2..4570b8e4b 100644 --- a/src/basic/prioq.c +++ b/src/basic/prioq.c @@ -1,5 +1,3 @@ -/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ - /*** This file is part of systemd. @@ -29,7 +27,11 @@ * The underlying algorithm used in this implementation is a Heap. */ -#include "util.h" +#include +#include + +#include "alloc-util.h" +#include "hashmap.h" #include "prioq.h" struct prioq_item { @@ -60,9 +62,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) {