From bb64a1b0b193c0a733499e1cb811255f1f9ffa3c Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 18 Jul 2013 23:03:47 +0200 Subject: installation_proxy: Fix another two memory leaks --- src/installation_proxy.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/installation_proxy.c b/src/installation_proxy.c index ee27d97..6873f26 100644 --- a/src/installation_proxy.c +++ b/src/installation_proxy.c @@ -245,6 +245,8 @@ instproxy_error_t instproxy_browse(instproxy_client_t client, plist_t client_opt if (res == INSTPROXY_E_SUCCESS) { *result = apps_array; + } else { + plist_free(apps_array); } leave_unlock: @@ -837,6 +839,8 @@ instproxy_error_t instproxy_client_get_path_for_bundle_identifier(instproxy_clie } if (!app_found) { + if (apps) + plist_free(apps); *path = NULL; return INSTPROXY_E_OP_FAILED; } -- cgit v1.1-32-gdbae