mirror of
https://github.com/reactos/reactos.git
synced 2024-09-15 07:05:04 +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:
parent
14d8dfbd90
commit
4ff5fc5caa
|
@ -521,9 +521,11 @@ NdisReadConfiguration(
|
||||||
|
|
||||||
ExFreePool(KeyInformation);
|
ExFreePool(KeyInformation);
|
||||||
|
|
||||||
if(*Status != STATUS_SUCCESS)
|
if(*Status != STATUS_SUCCESS) {
|
||||||
|
ExFreePool(*ParameterValue);
|
||||||
|
*ParameterValue = NULL;
|
||||||
*Status = NDIS_STATUS_FAILURE;
|
*Status = NDIS_STATUS_FAILURE;
|
||||||
else
|
} else
|
||||||
*Status = NDIS_STATUS_SUCCESS;
|
*Status = NDIS_STATUS_SUCCESS;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -567,6 +569,7 @@ NdisReadConfiguration(
|
||||||
if(!MiniportResource)
|
if(!MiniportResource)
|
||||||
{
|
{
|
||||||
NDIS_DbgPrint(MIN_TRACE,("Insufficient resources.\n"));
|
NDIS_DbgPrint(MIN_TRACE,("Insufficient resources.\n"));
|
||||||
|
ExFreePool(RegData);
|
||||||
ExFreePool(KeyInformation);
|
ExFreePool(KeyInformation);
|
||||||
ExFreePool(*ParameterValue);
|
ExFreePool(*ParameterValue);
|
||||||
*ParameterValue = NULL;
|
*ParameterValue = NULL;
|
||||||
|
|
Loading…
Reference in a new issue