mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-01 01:41:52 -05:00
pacsort: ensure list is freed if size is 0
Found using: `valgrind ./src/util/.libs/lt-pacsort /dev/null` Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
e9b8a7693d
commit
ffdfc82523
@ -383,9 +383,9 @@ int main(int argc, char *argv[])
|
||||
for(i = 0; i < list->count; i++) {
|
||||
printf("%s%c", list->list[i], linedelim);
|
||||
}
|
||||
list_free(list);
|
||||
}
|
||||
|
||||
list_free(list);
|
||||
buffer_free(buffer);
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user