- Make sure ThunkTable is not NULL before attempting to free it

- It gets set to NULL when the thunk is successfully added
 - I have no idea how this ever worked without this fix

svn path=/trunk/; revision=37125
This commit is contained in:
Cameron Gutman 2008-11-01 01:00:08 +00:00
parent eaba38bfb8
commit b949b9b7c3

View file

@ -146,7 +146,7 @@ Cleanup:
KeLeaveCriticalRegion();
/* Free the table if we failed and return status */
ExFreePool(ThunkTable);
if (ThunkTable) ExFreePool(ThunkTable);
return Status;
}