Plug some very minor memleaks on error codepaths
More minor memleaks plugged
Plug some more leaks in weird error codepaths...
Meh.