diff options
author | Allan McRae <allan@archlinux.org> | 2014-12-24 01:48:57 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-12-24 02:19:30 +0100 |
commit | 88eedef6c653d6308fcd93dd49ea9abecd7e5f62 (patch) | |
tree | ba30bf1a6e6b4802f563d8afaa9ddc86743b6725 /lib | |
parent | 52d2ff648d2d6672b7a6458b76f639388f32d3df (diff) | |
download | pacman-88eedef6c653d6308fcd93dd49ea9abecd7e5f62.tar.gz pacman-88eedef6c653d6308fcd93dd49ea9abecd7e5f62.tar.xz |
add_fileconflict: free memory on error
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libalpm/conflict.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/conflict.c b/lib/libalpm/conflict.c index 63b83048..6402ab3d 100644 --- a/lib/libalpm/conflict.c +++ b/lib/libalpm/conflict.c @@ -288,6 +288,7 @@ static alpm_list_t *add_fileconflict(alpm_handle_t *handle, return conflicts; error: + alpm_fileconflict_free(conflict); RET_ERR(handle, ALPM_ERR_MEMORY, conflicts); } |