fixed mem leak

duh!