From 88eedef6c653d6308fcd93dd49ea9abecd7e5f62 Mon Sep 17 00:00:00 2001
From: Allan McRae <allan@archlinux.org>
Date: Wed, 24 Dec 2014 10:48:57 +1000
Subject: add_fileconflict: free memory on error

Signed-off-by: Allan McRae <allan@archlinux.org>
---
 lib/libalpm/conflict.c | 1 +
 1 file changed, 1 insertion(+)

(limited to 'lib')

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);
 }
 
-- 
cgit v1.2.3-70-g09d2