Fix stupid memleaks