Skip to content

Commit

Permalink
fix leak
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-gorules committed Feb 8, 2024
1 parent ee18c83 commit b661374
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

0 comments on commit b661374

Please sign in to comment.