From 2525c2ea6ab5890051347d9f1ddda5e7f9ad9ca3 Mon Sep 17 00:00:00 2001 From: Ged Murphy Date: Wed, 5 Sep 2007 22:44:46 +0000 Subject: [PATCH] don't try to free a NULL pointer svn path=/trunk/; revision=28888 --- reactos/base/system/services/config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/base/system/services/config.c b/reactos/base/system/services/config.c index 9a95f56eceb..922a3967952 100644 --- a/reactos/base/system/services/config.c +++ b/reactos/base/system/services/config.c @@ -288,7 +288,8 @@ done:; if (dwError != ERROR_SUCCESS) { HeapFree(GetProcessHeap(), 0, ptr); - HeapFree(GetProcessHeap(), 0, expanded); + if (expanded) + HeapFree(GetProcessHeap(), 0, expanded); } return dwError;