diff options
author | Jonathan Beck | 2008-08-12 22:02:18 +0200 |
---|---|---|
committer | Jonathan Beck | 2008-08-21 18:49:51 +0200 |
commit | 09e5d87069f16e60918d71a8d00b891e2981f166 (patch) | |
tree | 19197c029c1703ceb41f99f1719fa7a22dca01c5 /src/AFC.c | |
parent | a885ca9dbe929781144f3f1a00e565dfa31f68c6 (diff) | |
download | libimobiledevice-09e5d87069f16e60918d71a8d00b891e2981f166.tar.gz libimobiledevice-09e5d87069f16e60918d71a8d00b891e2981f166.tar.bz2 |
fix missing free in dispatch_AFC_packet
Diffstat (limited to 'src/AFC.c')
-rw-r--r-- | src/AFC.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -179,6 +179,7 @@ static int dispatch_AFC_packet(AFClient *client, const char *data, int length) { if (debug) fwrite(buffer, 1, client->afc_packet->this_length, stdout); if (debug) fprintf(stderr, "\n"); bytes = mux_send(client->connection, buffer, client->afc_packet->this_length); + if (buffer) free(buffer); return bytes; } return -1; |