usb_hid: Fix potential memory leak within HIDParser.cpp

This commit is contained in:
Lioncash
2014-09-26 20:38:22 +02:00
committed by François Revol
parent ef36e92c05
commit 8108b86980
@@ -66,6 +66,7 @@ HIDParser::ParseReportDescriptor(const uint8 *reportDescriptor,
localState);
if (fRootCollection == NULL) {
TRACE_ALWAYS("no memory to allocate root collection\n");
free(usageStack);
return B_NO_MEMORY;
}