Fix coverity issues 34/282334/1 accepted/tizen/unified/20221004.073922
authorsooyeon <sooyeon.kim@samsung.com>
Fri, 30 Sep 2022 02:02:36 +0000 (11:02 +0900)
committerTizen AI <ai.tzn.sec@samsung.com>
Fri, 30 Sep 2022 02:26:54 +0000 (11:26 +0900)
Change-Id: Ica79c8c2c2804e9f11e45480914726085637eff7
Signed-off-by: sooyeon <sooyeon.kim@samsung.com>
server/vcd_tidl.c

index e142039..08060ca 100644 (file)
@@ -1905,6 +1905,8 @@ int vcdc_send_error_signal_to_app(int pid, int reason, char *err_msg)
 
        rpc_port_stub_vcd_stub_vc_notify_cb_invoke(info->notify_cb, pid, msg);
 
+       bundle_free(msg);
+
        return VCD_ERROR_NONE;
 }
 
@@ -2471,6 +2473,7 @@ int vcdc_send_feedback_streaming_to_manager(int manager_pid, int pid, int utt_id
        rpc_port_stub_vcd_mgr_stub_array_char_create(&streaming_data);
        if (NULL == streaming_data) {
                SLOG(LOG_ERROR, TAG_VCD, "[ERROR] Fail to create data handle");
+               bundle_free(msg);
                return VCD_ERROR_OUT_OF_MEMORY;
        }