From ff377bd3d2545db0c8cc987a52c42d2a676c0789 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Fri, 13 Oct 2006 19:19:16 +0000 Subject: [PATCH] Don't accidentally free the object name path in case it wasn't altered when resolving paths to handles svn path=/trunk/; revision=24504 --- reactos/dll/win32/ntmarta/ntmarta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/ntmarta/ntmarta.c b/reactos/dll/win32/ntmarta/ntmarta.c index a9ecb21125b..e29764ef1b3 100644 --- a/reactos/dll/win32/ntmarta/ntmarta.c +++ b/reactos/dll/win32/ntmarta/ntmarta.c @@ -823,7 +823,7 @@ FailOpenService: } Cleanup: - if (lpPath != NULL) + if (lpPath != NULL && lpPath != pObjectName) { LocalFree((HLOCAL)lpPath); }