Fix memory leak - missing free