fixed memory leak
Merge branch 'master' of https://github.com/haotianwang/cs194_proj
fixed memory leak