After each detection call, extra mem is released

But not all yet :(