Remove if check, because free can be called on NULL