Added two missing free()'s to make_edit_script