From 835fa742ffd224fc5dc23c40f2e08891f28d2a46 Mon Sep 17 00:00:00 2001 From: Jonghyun Park Date: Thu, 3 Nov 2016 06:44:24 +0900 Subject: [PATCH] Set pRetVal as NULL on error inside 'VIRTUALCommitMemory' (dotnet/coreclr#7920) Commit migrated from https://github.com/dotnet/coreclr/commit/b4a5de28efa0fdde7c74287cda31b658e11f7ebc --- src/coreclr/src/pal/src/map/virtual.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coreclr/src/pal/src/map/virtual.cpp b/src/coreclr/src/pal/src/map/virtual.cpp index 316dfba..4a55de9 100644 --- a/src/coreclr/src/pal/src/map/virtual.cpp +++ b/src/coreclr/src/pal/src/map/virtual.cpp @@ -1157,10 +1157,10 @@ error: pRetVal = NULL; goto done; } - pInformation = NULL; - pRetVal = NULL; } + pInformation = NULL; + pRetVal = NULL; done: LogVaOperation( -- 2.7.4