From 70d133fc9220e0dc2f4c08d535e1527702fabc45 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Tue, 17 Jul 2012 18:51:17 +0200 Subject: asr: Fix memory leak in asr_send() --- src/asr.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/asr.c') 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; } -- cgit v1.1-32-gdbae