I've found that a small dmonly swift run with on-the-fly velociraptor eventually crashes with an out of memory error. Running in ddt shows that it's leaking memory on each velociraptor invocation, mainly because the pfof array in InvokeVelociraptorHydro doesn't get deallocated. This merge request fixes that and a couple of much smaller leaks.
There's still one more leak I haven't tracked down. The array returned by BuildPGList sometimes isn't deallocated but I don't know which call to BuildPGList is the problem.
I've found that a small dmonly swift run with on-the-fly velociraptor eventually crashes with an out of memory error. Running in ddt shows that it's leaking memory on each velociraptor invocation, mainly because the pfof array in InvokeVelociraptorHydro doesn't get deallocated. This merge request fixes that and a couple of much smaller leaks.
There's still one more leak I haven't tracked down. The array returned by BuildPGList sometimes isn't deallocated but I don't know which call to BuildPGList is the problem.