From b6613746b6723cf811fab60b46746275dea11b9b Mon Sep 17 00:00:00 2001 From: Stefan Date: Thu, 8 Feb 2024 22:29:23 +0100 Subject: [PATCH] fix leak --- engine.go | 1 + 1 file changed, 1 insertion(+) diff --git a/engine.go b/engine.go index 3a9ddf0..56c189b 100644 --- a/engine.go +++ b/engine.go @@ -157,6 +157,7 @@ func (engine engine) Dispose() { C.zen_engine_free(engine.enginePtr) if engine.handlerIdPtr != nil { + defer C.free(engine.handlerIdPtr) engine.handler.Delete() } }