if (1 != dbus_connection_send(g_conn_sender, msg, NULL)) {
MAS_LOGE("[Dbus ERROR] Fail to Send");
+ if (NULL != temp_asr_result) {
+ free(temp_asr_result);
+ temp_asr_result = NULL;
+ }
return -1; // MAS_ERROR_OPERATION_FAILED;
} else {
MAS_LOGD("[Dbus DEBUG] Success to Send ASR result");
if (1 != dbus_connection_send(g_conn_sender, msg, NULL)) {
MAS_LOGE("[Dbus ERROR] Fail to Send");
+ if (temp_display_text)
+ free(temp_display_text);
+ if (temp_utterance_text)
+ free(temp_utterance_text);
+ if (temp_result_json)
+ free(temp_result_json);
return -1; //MA_ERROR_OPERATION_FAILED;
} else {
MAS_LOGD("[Dbus DEBUG] Success to Send result");
if (temp_utterance_text)
free(temp_utterance_text);
if (temp_result_json)
- free(temp_result_json);
+ free(temp_result_json);
#endif
return 0;
}