Tencent / sluaunreal

lua dev plugin for unreal engine 4 or 5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ULuaOverrider::luaOverrideFunc函数内存泄漏

gunsungithub opened this issue · comments

locals = (uint8*)FMemory_Alloca(func->ParmsSize);
FMemory::Memzero(locals, func->ParmsSize);

看起来可能会内存泄漏

不会的,它是栈上申请内存的,会自动回收

请教一下,看上去是一个普通的malloc,为什么是在栈上呢?