[runtime] Fix a memory leak.