[Fix] Fix two memory leaks

Yeah, whatever you like best :-)