[pacman-dev] [PATCH 2/5] add_fileconflict: free memory on error
Allan McRae
allan at archlinux.org
Wed Dec 24 01:01:38 UTC 2014
Signed-off-by: Allan McRae <allan at archlinux.org>
---
lib/libalpm/conflict.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/libalpm/conflict.c b/lib/libalpm/conflict.c
index 63b8304..6402ab3 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);
}
--
2.2.1
More information about the pacman-dev
mailing list