summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2014-12-24 10:48:57 +1000
committerAllan McRae <allan@archlinux.org>2014-12-24 11:19:30 +1000
commit88eedef6c653d6308fcd93dd49ea9abecd7e5f62 (patch)
treeba30bf1a6e6b4802f563d8afaa9ddc86743b6725 /lib/libalpm
parent52d2ff648d2d6672b7a6458b76f639388f32d3df (diff)
downloadpacman-88eedef6c653d6308fcd93dd49ea9abecd7e5f62.tar.xz
add_fileconflict: free memory on error
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/conflict.c1
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);
}