Author: tfaber
Date: Fri Apr 1 08:32:40 2016
New Revision: 71088
URL:
http://svn.reactos.org/svn/reactos?rev=71088&view=rev
Log:
[USBSTOR]
- Fix memory leak in USBSTOR_ClassRequest. Patch by Vadim Galyant (vgal at rambler dot
ru).
CORE-11074 #resolve
Modified:
trunk/reactos/drivers/usb/usbstor/misc.c
Modified: trunk/reactos/drivers/usb/usbstor/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbstor/misc.c…
==============================================================================
--- trunk/reactos/drivers/usb/usbstor/misc.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbstor/misc.c [iso-8859-1] Fri Apr 1 08:32:40 2016
@@ -292,7 +292,6 @@
{
PURB Urb;
- PUCHAR Buffer;
NTSTATUS Status;
//
@@ -304,19 +303,6 @@
//
// no memory
//
- return STATUS_INSUFFICIENT_RESOURCES;
- }
-
- //
- // allocate 1-byte buffer
- //
- Buffer = (PUCHAR)AllocateItem(NonPagedPool, sizeof(UCHAR));
- if (!Buffer)
- {
- //
- // no memory
- //
- FreeItem(Buffer);
return STATUS_INSUFFICIENT_RESOURCES;
}