MCPcopy Create free account
hub / github.com/HyperDbg/HyperDbg / RemoveTokenList

Function RemoveTokenList

hyperdbg/script-engine/code/common.c:401–414  ·  view source on GitHub ↗

* @brief Removes allocated memory of a SCRIPT_ENGINE_TOKEN_LIST * * @param TokenList * @return void */

Source from the content-addressed store, hash-verified

399 * @return void
400 */
401void
402RemoveTokenList(PSCRIPT_ENGINE_TOKEN_LIST TokenList)
403{
404 PSCRIPT_ENGINE_TOKEN Token;
405 for (uintptr_t i = 0; i < TokenList->Pointer; i++)
406 {
407 Token = *(TokenList->Head + i);
408 RemoveToken(&Token);
409 }
410 free(TokenList->Head);
411 free(TokenList);
412
413 return;
414}
415
416/**
417 * @brief Prints each Token inside a TokenList

Callers 3

ScriptEngineParseFunction · 0.85
CodeGenFunction · 0.85

Calls 1

RemoveTokenFunction · 0.85

Tested by

no test coverage detected