Fix coverity - dbus_connection_unref 74/155674/1 accepted/tizen/4.0/unified/20171017.211638 submit/tizen_4.0/20171016.025838 tizen_4.0.m2_release
authorsooyeon.kim <sooyeon.kim@samsung.com>
Mon, 16 Oct 2017 02:26:12 +0000 (11:26 +0900)
committersooyeon.kim <sooyeon.kim@samsung.com>
Mon, 16 Oct 2017 02:26:12 +0000 (11:26 +0900)
Change-Id: Id53a2235885cdbb9895ce0426d945f44c700ef1b
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
client/stt_dbus.c
server/sttd_dbus.c

index f62b0a4..e616520 100644 (file)
@@ -652,12 +652,10 @@ static void __stt_dbus_connection_free()
 {
        if (NULL != g_conn_listener) {
                dbus_connection_close(g_conn_listener);
-               dbus_connection_unref(g_conn_listener);
                g_conn_listener = NULL;
        }
        if (NULL != g_conn_sender) {
                dbus_connection_close(g_conn_sender);
-               dbus_connection_unref(g_conn_sender);
                g_conn_sender = NULL;
        }
 }
index fcc04ff..28298be 100644 (file)
@@ -504,17 +504,14 @@ void __sttd_dbus_connection_free()
 {
        if (NULL != g_conn_listener) {
                dbus_connection_close(g_conn_listener);
-               dbus_connection_unref(g_conn_listener);
                g_conn_listener = NULL;
        }
        if (NULL != g_conn_sender) {
                dbus_connection_close(g_conn_sender);
-               dbus_connection_unref(g_conn_sender);
                g_conn_sender = NULL;
        }
        if (NULL != g_conn_custom) {
                dbus_connection_close(g_conn_custom);
-               dbus_connection_unref(g_conn_custom);
                g_conn_custom = NULL;
        }
 }
@@ -678,7 +675,6 @@ int __sttd_request_custom_dbus_name()
        }
 
        dbus_connection_close(g_conn_custom);
-       dbus_connection_unref(g_conn_custom);
        g_conn_custom = NULL;
 
        SLOG(LOG_DEBUG, TAG_STTD, "==");