Fix leak in freeing stack path on frame pop