From 4c8ef633839cd3f0b03d10a1977846fe38f205f1 Mon Sep 17 00:00:00 2001 From: s1lentq Date: Wed, 12 Oct 2016 21:26:21 +0000 Subject: [PATCH] Fix: leak memory from unregister_forward (#388) --- modules/fakemeta/forward.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/fakemeta/forward.cpp b/modules/fakemeta/forward.cpp index 82d8cb86..9e3e6621 100644 --- a/modules/fakemeta/forward.cpp +++ b/modules/fakemeta/forward.cpp @@ -848,6 +848,7 @@ static cell AMX_NATIVE_CALL unregister_forward(AMX *amx, cell *params) if (peng->at(i) == func_id) { peng->remove(i); + MF_UnregisterSPForward(func_id); if (!peng->length() && patchAddr != NULL && func != FM_ServerDeactivate) { /* Clear out this forward if we no longer need it */