summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-07-18 23:03:47 +0200
committerGravatar Martin Szulecki2013-07-18 23:03:47 +0200
commitbb64a1b0b193c0a733499e1cb811255f1f9ffa3c (patch)
tree3bed0a548612d83a54f2447edd4ab8dffc2108c9
parentb70438d116b0da8519f7772f09c5b563b69c07ae (diff)
downloadlibimobiledevice-bb64a1b0b193c0a733499e1cb811255f1f9ffa3c.tar.gz
libimobiledevice-bb64a1b0b193c0a733499e1cb811255f1f9ffa3c.tar.bz2
installation_proxy: Fix another two memory leaks
-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 }