Fixed memory leak in DATR/ELF handling of dynamic compilation