fix a memory leak

you should release a object after alloc it