blob: a49293b09e0a2eacfddf834b8eb715aa9f85bda6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
From bcb6db72d481965bcfdd890d338b54b0f502a486 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= <fidencio@redhat.com>
Date: Fri, 18 Jul 2014 17:27:09 +0200
Subject: usbredirtestclient: Fix a memory leak
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
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;
--
cgit v0.10.2
|