1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -05:00

add_fileconflict: free memory on error

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2014-12-24 10:48:57 +10:00
parent 52d2ff648d
commit 88eedef6c6

View File

@ -288,6 +288,7 @@ static alpm_list_t *add_fileconflict(alpm_handle_t *handle,
return conflicts; return conflicts;
error: error:
alpm_fileconflict_free(conflict);
RET_ERR(handle, ALPM_ERR_MEMORY, conflicts); RET_ERR(handle, ALPM_ERR_MEMORY, conflicts);
} }