small change to free memory, still looking for more leakz