Fix comparison instead of assignment in free_sink()