index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2020-04-13 07:28:48 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2020-04-13 23:44:46 +1000 |
commit | 1b3289745334ec31507a12b6c54b2883a521543e (patch) | |
tree | fea28e9b2f68178c5252f3c68cedccc1f766859f /lib/libalpm/be_local.c | |
parent | 1d39557aa070d2260cfda650e59c8d190397ba01 (diff) |
-rw-r--r-- | lib/libalpm/be_local.c | 7 |
diff --git a/lib/libalpm/be_local.c b/lib/libalpm/be_local.c index 9ebdfa40..689f0102 100644 --- a/lib/libalpm/be_local.c +++ b/lib/libalpm/be_local.c @@ -843,12 +843,7 @@ static int local_db_read(alpm_pkg_t *info, int inforeq) } /* attempt to hand back any memory we don't need */ if(files_count > 0) { - alpm_file_t *newfiles; - - newfiles = realloc(files, sizeof(alpm_file_t) * files_count); - if(newfiles != NULL) { - files = newfiles; - } + REALLOC(files, sizeof(alpm_file_t) * files_count, (void)0); } else { FREE(files); } |