From b949b9b7c39698f2132930788afd858cc164ae3f Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 1 Nov 2008 01:00:08 +0000 Subject: [PATCH] - 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 --- reactos/ntoskrnl/mm/verifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/mm/verifier.c b/reactos/ntoskrnl/mm/verifier.c index f2682991609..11d3ac2685d 100644 --- a/reactos/ntoskrnl/mm/verifier.c +++ b/reactos/ntoskrnl/mm/verifier.c @@ -146,7 +146,7 @@ Cleanup: KeLeaveCriticalRegion(); /* Free the table if we failed and return status */ - ExFreePool(ThunkTable); + if (ThunkTable) ExFreePool(ThunkTable); return Status; }