Fix memory leak. Oops :(.

Found by KindOne on IRC. Thanks!