Set pRetVal as NULL on error inside 'VIRTUALCommitMemory' (dotnet/coreclr#7920)
authorJonghyun Park <parjong@gmail.com>
Wed, 2 Nov 2016 21:44:24 +0000 (06:44 +0900)
committerJan Vorlicek <janvorli@microsoft.com>
Wed, 2 Nov 2016 21:44:24 +0000 (14:44 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/b4a5de28efa0fdde7c74287cda31b658e11f7ebc

src/coreclr/src/pal/src/map/virtual.cpp

index 316dfba..4a55de9 100644 (file)
@@ -1157,10 +1157,10 @@ error:
             pRetVal = NULL;
             goto done;
         }
-        pInformation = NULL;
-        pRetVal = NULL;
     }
 
+    pInformation = NULL;
+    pRetVal = NULL;
 done:
 
     LogVaOperation(