projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79407a8
)
[USBSTOR]
author
Thomas Faber
<thomas.faber@reactos.org>
Fri, 1 Apr 2016 08:32:40 +0000
(08:32 +0000)
committer
Thomas Faber
<thomas.faber@reactos.org>
Fri, 1 Apr 2016 08:32:40 +0000
(08:32 +0000)
- Fix memory leak in USBSTOR_ClassRequest. Patch by Vadim Galyant (vgal at rambler dot ru).
CORE-11074 #resolve
svn path=/trunk/; revision=71088
reactos/drivers/usb/usbstor/misc.c
patch
|
blob
|
history
diff --git
a/reactos/drivers/usb/usbstor/misc.c
b/reactos/drivers/usb/usbstor/misc.c
index
2404caa
..
f78b91c
100644
(file)
--- a/
reactos/drivers/usb/usbstor/misc.c
+++ b/
reactos/drivers/usb/usbstor/misc.c
@@
-292,7
+292,6
@@
USBSTOR_ClassRequest(
{
PURB Urb;
- PUCHAR Buffer;
NTSTATUS Status;
//
@@
-307,19
+306,6
@@
USBSTOR_ClassRequest(
return STATUS_INSUFFICIENT_RESOURCES;
}
- //
- // allocate 1-byte buffer
- //
- Buffer = (PUCHAR)AllocateItem(NonPagedPool, sizeof(UCHAR));
- if (!Buffer)
- {
- //
- // no memory
- //
- FreeItem(Buffer);
- return STATUS_INSUFFICIENT_RESOURCES;
- }
-
//
// initialize vendor request
//