From 750102d1a3a254bdf3fa3f21f3ab2812be9a134b Mon Sep 17 00:00:00 2001 From: qingdoa daoo Date: Thu, 13 Apr 2006 00:12:50 -0700 Subject: [PATCH] msvcrt: If caller passes a NULL deallocator to __unDNameEx, don't use it. --- dlls/msvcrt/undname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msvcrt/undname.c b/dlls/msvcrt/undname.c index ebf51fa4ab2..d18c6635f66 100644 --- a/dlls/msvcrt/undname.c +++ b/dlls/msvcrt/undname.c @@ -161,7 +161,7 @@ static void und_free_all(struct parsed_symbol* sym) while (sym->alloc_list) { next = *(void**)sym->alloc_list; - sym->mem_free_ptr(sym->alloc_list); + if(sym->mem_free_ptr) sym->mem_free_ptr(sym->alloc_list); sym->alloc_list = next; } sym->avail_in_first = 0;