aboutsummaryrefslogtreecommitdiffstats
path: root/main/usbredir/usbredirtestclient-Fix-a-memory-leak.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/usbredir/usbredirtestclient-Fix-a-memory-leak.patch')
-rw-r--r--main/usbredir/usbredirtestclient-Fix-a-memory-leak.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/main/usbredir/usbredirtestclient-Fix-a-memory-leak.patch b/main/usbredir/usbredirtestclient-Fix-a-memory-leak.patch
new file mode 100644
index 0000000000..a49293b09e
--- /dev/null
+++ b/main/usbredir/usbredirtestclient-Fix-a-memory-leak.patch
@@ -0,0 +1,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
+