fix _open in vconf api 86/101386/1 submit/tizen_3.0/20161202.062936
authorJiwoong Im <jiwoong.im@samsung.com>
Thu, 1 Dec 2016 05:18:26 +0000 (14:18 +0900)
committerJiwoong Im <jiwoong.im@samsung.com>
Thu, 1 Dec 2016 05:18:26 +0000 (14:18 +0900)
- If buxton_open fails, reduce refcnt.

Change-Id: I5eb923b3e127116bb9b28a400aa5eb3db73f8e65
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
vconf-compat/vconf.c

index e49e644..93b8f42 100644 (file)
@@ -215,6 +215,7 @@ static int _open(void)
        r = buxton_open(&client, NULL, NULL);
        if (r == -1) {
                LOGE("Can't connect to buxton: %d", errno);
+               _refcnt--;
                return -1;
        }