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;