summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2014-12-24 02:57:11 +0100
committerAllan McRae <allan@archlinux.org>2014-12-27 08:08:32 +0100
commitd5e93e895bdb3705f2baf83efcc7d56e86d927ed (patch)
tree8f6df4660c72d9525312f56ad6ca52053201658b /src
parent25b492aab691579c8edfc9f57831d055a3f82d74 (diff)
downloadpacman-d5e93e895bdb3705f2baf83efcc7d56e86d927ed.tar.gz
pacman-d5e93e895bdb3705f2baf83efcc7d56e86d927ed.tar.xz
pacsort: fix memory leak
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/util/pacsort.c1
1 files changed, 1 insertions, 0 deletions
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;
}