From d5e93e895bdb3705f2baf83efcc7d56e86d927ed Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Wed, 24 Dec 2014 11:57:11 +1000 Subject: pacsort: fix memory leak Signed-off-by: Allan McRae --- src/util/pacsort.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/pacsort.c b/src/util/pacsort.c index 665f2180..c59ba131 100644 --- a/src/util/pacsort.c +++ b/src/util/pacsort.c @@ -227,6 +227,7 @@ static struct input_t *input_new(const char *path, int pathlen) in->data = strndup(path, pathlen); if(in->data == NULL) { + free(in); return NULL; } -- cgit v1.2.3-70-g09d2