summaryrefslogtreecommitdiffstats
path: root/src/mobilesync.c
diff options
context:
space:
mode:
authorGravatar Christophe Fergeau2011-03-16 23:22:16 +0100
committerGravatar Martin Szulecki2011-03-16 23:26:46 +0100
commit74f050c286e6957294a15c86c5f739f49041b6cb (patch)
treeed3d74369d77d37405ccd12ce6c72ff0b927ea03 /src/mobilesync.c
parentae4b7bacc40fe85fa3c2c023ca5a6a5b45b43c53 (diff)
downloadlibimobiledevice-74f050c286e6957294a15c86c5f739f49041b6cb.tar.gz
libimobiledevice-74f050c286e6957294a15c86c5f739f49041b6cb.tar.bz2
mobilesync: Plugging a memory leak
Diffstat (limited to 'src/mobilesync.c')
-rw-r--r--src/mobilesync.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mobilesync.c b/src/mobilesync.c
index 7f20e16..ee9af5f 100644
--- a/src/mobilesync.c
+++ b/src/mobilesync.c
@@ -709,6 +709,10 @@ mobilesync_error_t mobilesync_ready_to_send_changes_from_computer(mobilesync_cli
err = MOBILESYNC_E_SUCCESS;
out:
+ if (response_type) {
+ free(response_type);
+ response_type = NULL;
+ }
if (msg) {
plist_free(msg);
msg = NULL;