mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:15:59 +00:00
[USBSTOR] fix memory leaks CID 1322134
svn path=/trunk/; revision=68989
This commit is contained in:
parent
05649af8f1
commit
414b2645fd
1 changed files with 6 additions and 0 deletions
|
@ -726,6 +726,8 @@ USBSTOR_SendRequest(
|
|||
//
|
||||
// failed to allocate MDL
|
||||
//
|
||||
FreeItem(Context->cbw);
|
||||
FreeItem(Context);
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
}
|
||||
|
||||
|
@ -755,6 +757,8 @@ USBSTOR_SendRequest(
|
|||
//
|
||||
// failed to allocate MDL
|
||||
//
|
||||
FreeItem(Context->cbw);
|
||||
FreeItem(Context);
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
}
|
||||
|
||||
|
@ -775,6 +779,8 @@ USBSTOR_SendRequest(
|
|||
//
|
||||
// failed to allocate MDL
|
||||
//
|
||||
FreeItem(Context->cbw);
|
||||
FreeItem(Context);
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue