diff options
author | Christophe Fergeau | 2011-03-16 23:22:16 +0100 |
---|---|---|
committer | Martin Szulecki | 2011-03-16 23:26:46 +0100 |
commit | 74f050c286e6957294a15c86c5f739f49041b6cb (patch) | |
tree | ed3d74369d77d37405ccd12ce6c72ff0b927ea03 /src/mobilesync.c | |
parent | ae4b7bacc40fe85fa3c2c023ca5a6a5b45b43c53 (diff) | |
download | libimobiledevice-74f050c286e6957294a15c86c5f739f49041b6cb.tar.gz libimobiledevice-74f050c286e6957294a15c86c5f739f49041b6cb.tar.bz2 |
mobilesync: Plugging a memory leak
Diffstat (limited to 'src/mobilesync.c')
-rw-r--r-- | src/mobilesync.c | 4 |
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; |