remove unnecessary free()