dump_pkg_full: fix optionalfor memory leak
alpm_pkg_compute_optional returns a generated list that needs to be free'd. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
6be08f76f6
commit
4d68092e2f
1 changed files with 1 additions and 0 deletions
|
@ -235,6 +235,7 @@ void dump_pkg_full(alpm_pkg_t *pkg, int extra)
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
FREELIST(requiredby);
|
FREELIST(requiredby);
|
||||||
|
FREELIST(optionalfor);
|
||||||
alpm_list_free(validation);
|
alpm_list_free(validation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue