Skip to content

Commit 425a531

Browse files
committed
DBG: fix use after free derp
closes x64dbg#2149
1 parent ed5d085 commit 425a531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dbg/debugger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,13 +1343,13 @@ static void cbCreateProcess(CREATE_PROCESS_DEBUG_INFO* CreateProcessInfo)
13431343
// Parse the command line from the debuggee
13441344
int argc = 0;
13451345
wchar_t** argv = CommandLineToArgvW(StringUtils::Utf8ToUtf16(cmdline).c_str(), &argc);
1346-
LocalFree(argv);
13471346

13481347
// Print the command line to the log
13491348
dprintf_untranslated(" %s\n", cmdline);
13501349
for(int i = 0; i < argc; i++)
13511350
dprintf_untranslated(" argv[%i]: %s\n", i, StringUtils::Utf16ToUtf8(argv[i]).c_str());
13521351

1352+
LocalFree(argv);
13531353
efree(cmdline);
13541354
}
13551355

0 commit comments

Comments
 (0)