Fix a bad free()