summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/installation_proxy.c4
1 files changed, 4 insertions, 0 deletions
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
245 245
246 if (res == INSTPROXY_E_SUCCESS) { 246 if (res == INSTPROXY_E_SUCCESS) {
247 *result = apps_array; 247 *result = apps_array;
248 } else {
249 plist_free(apps_array);
248 } 250 }
249 251
250leave_unlock: 252leave_unlock:
@@ -837,6 +839,8 @@ instproxy_error_t instproxy_client_get_path_for_bundle_identifier(instproxy_clie
837 } 839 }
838 840
839 if (!app_found) { 841 if (!app_found) {
842 if (apps)
843 plist_free(apps);
840 *path = NULL; 844 *path = NULL;
841 return INSTPROXY_E_OP_FAILED; 845 return INSTPROXY_E_OP_FAILED;
842 } 846 }