summaryrefslogtreecommitdiffstats
path: root/src/asr.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-07-17 18:51:17 +0200
committerGravatar Nikias Bassen2012-07-17 18:51:17 +0200
commit70d133fc9220e0dc2f4c08d535e1527702fabc45 (patch)
treea1c42076adc96098f3d6938beeb4bfe36a523f84 /src/asr.c
parent96ea29a095c5fbb68927829e8cfcf97e39595bfe (diff)
downloadidevicerestore-70d133fc9220e0dc2f4c08d535e1527702fabc45.tar.gz
idevicerestore-70d133fc9220e0dc2f4c08d535e1527702fabc45.tar.bz2
asr: Fix memory leak in asr_send()
Diffstat (limited to 'src/asr.c')
-rw-r--r--src/asr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/asr.c b/src/asr.c
index 3d6ea05..db11d08 100644
--- a/src/asr.c
+++ b/src/asr.c
@@ -148,10 +148,8 @@ int asr_send(asr_client_t asr, plist_t* data) {
debug("Sent %d bytes:\n", size);
- // TODO: Actually figure out the problem with the commented out code below, instead of just ditching it...
- /*if (idevicerestore_debug)
- debug_plist(*data);
- free(buffer);*/
+ if (buffer)
+ free(buffer);
return 0;
}