compiler/libec: Fixed new memory leaks