Change-Id: Id253e0b2ce5892ef268c4f7465e3f60a06131d66
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
g_slist_free(cmd_list);
SLOG(LOG_ERROR, vc_db_tag(), "[ERROR] Fail to insert command, %d", ret);
+ if (NULL != fixed_cmd) {
+ free(fixed_cmd);
+ fixed_cmd = NULL;
+ }
+
return ret;
}
cmd_list = NULL;
free(fixed_cmd);
fixed_cmd = NULL;
}
- __vc_db_command_destroy((vc_cmd_h)tmp_cmd);
+
+ if (NULL != tmp_cmd) {
+ SLOG(LOG_DEBUG, vc_db_tag(), "[DEBUG] command destroy");
+ __vc_db_command_destroy((vc_cmd_h)tmp_cmd);
+ }
return VC_DB_ERROR_NONE;
}