nsscompiler: Fix bunch of memory leaks