From dfa7afa0dcb9edcaeb918c53f86ac9387ea6d661 Mon Sep 17 00:00:00 2001
From: Murai Takashi <tmurai01@gmail.com>
Date: Mon, 6 Jan 2014 22:17:49 +0900
Subject: [PATCH 6/8] Fix memory leak
---
.../kernel/drivers/input/usb_hid/HIDParser.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/add-ons/kernel/drivers/input/usb_hid/HIDParser.cpp b/src/add-ons/kernel/drivers/input/usb_hid/HIDParser.cpp
index b37dc0f..b040546 100644
a
|
b
|
HIDParser::ParseReportDescriptor(const uint8 *reportDescriptor,
|
66 | 66 | localState); |
67 | 67 | if (fRootCollection == NULL) { |
68 | 68 | TRACE_ALWAYS("no memory to allocate root collection\n"); |
| 69 | free(usageStack); |
69 | 70 | return B_NO_MEMORY; |
70 | 71 | } |
71 | 72 | |