Fix freeing of jitted functions in test support code.