Fix leaks in Executable and subclasses