Change-Id: Ied7439593b1d4c8e104f80af43b0045ba515be67
__vc_db_extract_unfixed_command(*result_text, temp_fixed, &temp_unfixed);
vc_cmd_set_command(temp_cmd, temp_fixed);
vc_cmd_set_unfixed_command(temp_cmd, temp_unfixed);
+ if (temp_unfixed)
+ free(temp_unfixed);
+ temp_unfixed = NULL;
} else {
vc_cmd_set_command(temp_cmd, temp_command);
}
g_slist_free(cmd_list);
SLOG(LOG_ERROR, vc_db_tag(), "[ERROR] Fail to insert command, %d", ret);
- vc_cmd_destroy((vc_cmd_h)tmp_cmd);
return ret;
}
cmd_list = NULL;