ctsvc_end_trans before return 84/45784/2
authorGukhwan Cho <gh78.cho@samsung.com>
Mon, 10 Aug 2015 08:34:38 +0000 (17:34 +0900)
committerMyoungHoon Chae <mhoon.chae@samsung.com>
Tue, 11 Aug 2015 08:29:16 +0000 (17:29 +0900)
Change-Id: Icd52206819b9317f2099395fd26e919cf811f016
Signed-off-by: Gukhwan Cho <gh78.cho@samsung.com>
native/ctsvc_db_plugin_contact.c

index 7778518..72650b5 100644 (file)
@@ -1051,8 +1051,10 @@ static inline int __ctsvc_contact_update_search_data(int contact_id, bool need_r
                r = ctsvc_query_exec(query);
                if (CONTACTS_ERROR_NONE != r) {
                        CTS_ERR("ctsvc_query_exec() Fail(%d)", r);
+                       ctsvc_end_trans(false);
                        return r;
                }
+               ctsvc_end_trans(false);
                return ret;
        }
        else if (CONTACTS_ERROR_NONE != ret) {