summaryrefslogtreecommitdiffstats
path: root/src/AFC.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/AFC.c')
-rw-r--r--src/AFC.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/AFC.c b/src/AFC.c
index 3ad31d2..01e8497 100644
--- a/src/AFC.c
+++ b/src/AFC.c
@@ -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;