mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
- Fix 2 memory leaks
- Set ParameterValue to NULL on failure svn path=/branches/aicom-network-fixes/; revision=35944
This commit is contained in:
@@ -521,9 +521,11 @@ NdisReadConfiguration(
|
||||
|
||||
ExFreePool(KeyInformation);
|
||||
|
||||
if(*Status != STATUS_SUCCESS)
|
||||
if(*Status != STATUS_SUCCESS) {
|
||||
ExFreePool(*ParameterValue);
|
||||
*ParameterValue = NULL;
|
||||
*Status = NDIS_STATUS_FAILURE;
|
||||
else
|
||||
} else
|
||||
*Status = NDIS_STATUS_SUCCESS;
|
||||
|
||||
return;
|
||||
@@ -567,6 +569,7 @@ NdisReadConfiguration(
|
||||
if(!MiniportResource)
|
||||
{
|
||||
NDIS_DbgPrint(MIN_TRACE,("Insufficient resources.\n"));
|
||||
ExFreePool(RegData);
|
||||
ExFreePool(KeyInformation);
|
||||
ExFreePool(*ParameterValue);
|
||||
*ParameterValue = NULL;
|
||||
|
||||
Reference in New Issue
Block a user