summaryrefslogtreecommitdiff
path: root/usbredirtestclient
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2014-07-18 17:27:09 +0200
committerHans de Goede <hdegoede@redhat.com>2014-07-18 17:27:09 +0200
commitbcb6db72d481965bcfdd890d338b54b0f502a486 (patch)
treebd30a31d24f01f8629965d52989e36874257256b /usbredirtestclient
parent44cdbe863403c87e85b2eede4d8014a561e8dc44 (diff)
usbredirtestclient: Fix a memory leak
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'usbredirtestclient')
-rw-r--r--usbredirtestclient/usbredirtestclient.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usbredirtestclient/usbredirtestclient.c b/usbredirtestclient/usbredirtestclient.c
index 42b16dc..9546b30 100644
--- a/usbredirtestclient/usbredirtestclient.c
+++ b/usbredirtestclient/usbredirtestclient.c
@@ -404,6 +404,7 @@ static int usbredirtestclient_cmdline_ctrl(void)
}
usbredirparser_send_control_packet(parser, id, &control_packet,
data, data_len);
+ free(data);
printf("Send control packet with id: %u\n", id);
id++;
return 1;