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:
parent
25b492aab6
commit
d5e93e895b
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user