Fix free crash.