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
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}