1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-03-01 01:41:52 -05:00

pacsort: fix memory leak

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2014-12-24 11:57:11 +10:00
parent 25b492aab6
commit d5e93e895b

View File

@ -227,6 +227,7 @@ static struct input_t *input_new(const char *path, int pathlen)
in->data = strndup(path, pathlen); in->data = strndup(path, pathlen);
if(in->data == NULL) { if(in->data == NULL) {
free(in);
return NULL; return NULL;
} }