From ac76837fc460a04f10c08ba4351d5021243e8fdb Mon Sep 17 00:00:00 2001 From: Jiwoong Im Date: Thu, 1 Dec 2016 14:18:26 +0900 Subject: [PATCH] fix _open in vconf api - If buxton_open fails, reduce refcnt. Change-Id: I5eb923b3e127116bb9b28a400aa5eb3db73f8e65 Signed-off-by: Jiwoong Im --- vconf-compat/vconf.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.7.4