update

fixed memory leak