fix a small memory leak, from brian