You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A memory leak occurs in the loop used to call ttdcursor.ReplayForward, since the caller of Cursor::GetCrossPlatformContext must free the context, and this is never done.
Here, the previous context containing the allocation is overriden without beeing freeed:
@synacktiv-rj: you're obviously right, and I can easily reproduce it when running the example_tenet exe on a ~300MB trace.
@mrexodia : I've indeed been away from this repo for a few month, but I've since merged your cmake PR (thanks, again).
If you still want to contribute to this repo, I would be happy to merge your context allocation changes.
Hello,
A memory leak occurs in the loop used to call
ttdcursor.ReplayForward
, since the caller ofCursor::GetCrossPlatformContext
must free the context, and this is never done.Here, the previous context containing the allocation is overriden without beeing freeed:
ttd-bindings/example_tenet/main.cpp
Line 243 in fb836bd
My quick fix to deal with this issue was:
I think the context should also be freed when this condition is true:
ttd-bindings/example_tenet/main.cpp
Lines 239 to 240 in fb836bd
Rémi
The text was updated successfully, but these errors were encountered: