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

Function FreeTemp

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

* @brief Frees the memory allocated by Temp * * @param Temp the token representing the temporary variable * @return VOID */

Source from the content-addressed store, hash-verified

690 * @return VOID
691 */
692VOID
693FreeTemp(PSCRIPT_ENGINE_TOKEN Temp)
694{
695 INT Id = (INT)DecimalToInt(Temp->Value);
696 if (Temp->Type == TEMP || Temp->Type == DEFERENCE_TEMP)
697 {
698 CurrentUserDefinedFunction->TempMap[Id] = 0;
699 }
700}
701
702/**
703 * @brief Checks whether this Token type is OneOpFunc1

Callers 1

CodeGenFunction · 0.85

Calls 1

DecimalToIntFunction · 0.85

Tested by

no test coverage detected