summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Rudolf Tammekivi2017-12-28 16:20:19 +0200
committerGravatar Rudolf Tammekivi2017-12-28 16:21:22 +0200
commit7f601f8e5241756c09d08a1319d90f24b9f8b1bc (patch)
treea315a0fe899f591b23a2f9393bc49245cc46a45d
parent46bdf3ec90acf3916ee8aba622a7da9da5eb8e06 (diff)
downloadusbmuxd-7f601f8e5241756c09d08a1319d90f24b9f8b1bc.tar.gz
usbmuxd-7f601f8e5241756c09d08a1319d90f24b9f8b1bc.tar.bz2
client: Plug memory leak
-rw-r--r--src/client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client.c b/src/client.c
index e4154d2..a9d09d3 100644
--- a/src/client.c
+++ b/src/client.c
@@ -617,6 +617,7 @@ static int client_command(struct mux_client *client, struct usbmuxd_header *hdr)
} else {
rval = EINVAL;
}
+ free(record_data);
if (send_result(client, hdr->tag, rval) < 0)
return -1;
return 0;