From: Jiwoong Im Date: Thu, 1 Dec 2016 05:18:26 +0000 (+0900) Subject: fix _open in vconf api X-Git-Tag: submit/tizen_3.0/20161202.062936^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac76837fc460a04f10c08ba4351d5021243e8fdb;p=platform%2Fcore%2Fsystem%2Fbuxton2.git fix _open in vconf api - If buxton_open fails, reduce refcnt. Change-Id: I5eb923b3e127116bb9b28a400aa5eb3db73f8e65 Signed-off-by: Jiwoong Im --- diff --git a/vconf-compat/vconf.c b/vconf-compat/vconf.c index e49e644..93b8f42 100644 --- a/vconf-compat/vconf.c +++ b/vconf-compat/vconf.c @@ -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; }