summaryrefslogtreecommitdiffstats
path: root/src/installation_proxy.c
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 /src/installation_proxy.c
parentb70438d116b0da8519f7772f09c5b563b69c07ae (diff)
downloadlibimobiledevice-bb64a1b0b193c0a733499e1cb811255f1f9ffa3c.tar.gz
libimobiledevice-bb64a1b0b193c0a733499e1cb811255f1f9ffa3c.tar.bz2
installation_proxy: Fix another two memory leaks
Diffstat (limited to 'src/installation_proxy.c')
-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
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;
}