pacman/util.c: fix user after free in print_packages
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
3c28c30133
commit
36fcff6e13
1 changed files with 1 additions and 0 deletions
|
@ -1262,6 +1262,7 @@ void print_packages(const alpm_list_t *packages)
|
|||
string = strreplace(temp, "%s", size);
|
||||
free(size);
|
||||
free(temp);
|
||||
temp = string;
|
||||
}
|
||||
/* %u : url */
|
||||
PRINT_FORMAT_STRING(temp, "%u", alpm_pkg_get_url)
|
||||
|
|
Loading…
Add table
Reference in a new issue