clone: Fix a memory leak