MCPcopy Create free account
hub / github.com/SaadAhla/FilelessPELoader / freeargvA

Function freeargvA

FilelessPELoader/FilelessPELoader.cpp:333–341  ·  view source on GitHub ↗

This array is created manually since CommandLineToArgvA doesn't exist, so manually freeing each item in array

Source from the content-addressed store, hash-verified

331
332//This array is created manually since CommandLineToArgvA doesn't exist, so manually freeing each item in array
333void freeargvA(char** array, int Argc)
334{
335 //Wipe cmdline args from beacon memory
336 for (int i = 0; i < Argc; i++)
337 {
338 memset(array[i], 0, strlen(array[i]));
339 }
340 LocalFree(array);
341}
342
343//This array is returned from CommandLineToArgvW so using LocalFree as per MSDN
344void freeargvW(wchar_t** array, int Argc)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected