Author: cwittich
Date: Fri Sep 4 12:05:14 2015
New Revision: 68989
URL:
http://svn.reactos.org/svn/reactos?rev=68989&view=rev
Log:
[USBSTOR] fix memory leaks CID 1322134
Modified:
trunk/reactos/drivers/usb/usbstor/scsi.c
Modified: trunk/reactos/drivers/usb/usbstor/scsi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbstor/scsi.c…
==============================================================================
--- trunk/reactos/drivers/usb/usbstor/scsi.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbstor/scsi.c [iso-8859-1] Fri Sep 4 12:05:14 2015
@@ -726,6 +726,8 @@
//
// failed to allocate MDL
//
+ FreeItem(Context->cbw);
+ FreeItem(Context);
return STATUS_INSUFFICIENT_RESOURCES;
}
@@ -755,6 +757,8 @@
//
// failed to allocate MDL
//
+ FreeItem(Context->cbw);
+ FreeItem(Context);
return STATUS_INSUFFICIENT_RESOURCES;
}
@@ -775,6 +779,8 @@
//
// failed to allocate MDL
//
+ FreeItem(Context->cbw);
+ FreeItem(Context);
return STATUS_INSUFFICIENT_RESOURCES;
}