diff options
author | Martin Szulecki | 2012-07-17 18:51:17 +0200 |
---|---|---|
committer | Nikias Bassen | 2012-07-17 18:51:17 +0200 |
commit | 70d133fc9220e0dc2f4c08d535e1527702fabc45 (patch) | |
tree | a1c42076adc96098f3d6938beeb4bfe36a523f84 /src/asr.c | |
parent | 96ea29a095c5fbb68927829e8cfcf97e39595bfe (diff) | |
download | idevicerestore-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.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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; } |