From 27b98eb29773a6e5ff964a5863bc05d3a34d2b87 Mon Sep 17 00:00:00 2001 From: Mike McLaughlin Date: Tue, 16 Jun 2015 10:49:54 -0700 Subject: [PATCH] Code review feedback. --- src/pal/src/thread/process.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/pal/src/thread/process.cpp b/src/pal/src/thread/process.cpp index 3fcd43d..498d05f 100644 --- a/src/pal/src/thread/process.cpp +++ b/src/pal/src/thread/process.cpp @@ -178,7 +178,7 @@ static BOOL PROCEndProcess(HANDLE hProcess, UINT uExitCode, // struct ProcessModules { - struct ProcessModules *Next; + ProcessModules *Next; PVOID BaseAddress; CHAR Name[0]; }; @@ -1920,8 +1920,6 @@ CreateProcessModules( return NULL; } - LockModuleList(); - CPalThread* pThread = InternalGetCurrentThread(); ProcessModules *listHead = NULL; char *line = NULL; @@ -1976,7 +1974,6 @@ CreateProcessModules( free(line); // We didn't allocate line, but as per contract of getline we should free it fclose(mapsFile); - UnlockModuleList(); return listHead; #else -- 2.7.4