avoid to free the same pointer