Fix freeing the wrong thing.