Fix memory leak

Whoops!