From f2f7cca119dfbae9b302b6ac4624f4d6cf63ac41 Mon Sep 17 00:00:00 2001
From: Martin Szulecki
Date: Wed, 20 Nov 2013 16:51:09 +0100
Subject: idevicerestore: Fix memory leak in
 build_manifest_check_compatibility()

---
 src/idevicerestore.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 18540f8..dcd538e 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -1622,6 +1622,7 @@ int build_manifest_check_compatibility(plist_t build_manifest, const char* produ
 			plist_get_string_val(prod, &val);
 			if (val && (strcmp(val, product) == 0)) {
 				res = 0;
+				free(val);
 				break;
 			}
 		}
-- 
cgit v1.1-32-gdbae