diff options
| author | 2017-12-28 16:20:19 +0200 | |
|---|---|---|
| committer | 2017-12-28 16:21:22 +0200 | |
| commit | 7f601f8e5241756c09d08a1319d90f24b9f8b1bc (patch) | |
| tree | a315a0fe899f591b23a2f9393bc49245cc46a45d | |
| parent | 46bdf3ec90acf3916ee8aba622a7da9da5eb8e06 (diff) | |
| download | usbmuxd-7f601f8e5241756c09d08a1319d90f24b9f8b1bc.tar.gz usbmuxd-7f601f8e5241756c09d08a1319d90f24b9f8b1bc.tar.bz2 | |
client: Plug memory leak
| -rw-r--r-- | src/client.c | 1 |
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) | |||
| 617 | } else { | 617 | } else { |
| 618 | rval = EINVAL; | 618 | rval = EINVAL; |
| 619 | } | 619 | } |
| 620 | free(record_data); | ||
| 620 | if (send_result(client, hdr->tag, rval) < 0) | 621 | if (send_result(client, hdr->tag, rval) < 0) |
| 621 | return -1; | 622 | return -1; |
| 622 | return 0; | 623 | return 0; |
