From 5a39e6e0b864ad179e7c1cb49eed2b4eea087f58 Mon Sep 17 00:00:00 2001 From: Jiwoong Im Date: Mon, 25 Apr 2016 17:58:55 +0900 Subject: [PATCH] vconf-compat : fix possible atomicity violation Change-Id: I50d56d26ffd227c17a55ecd014c2db554d12c959 Signed-off-by: Jiwoong Im --- vconf-compat/vconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vconf-compat/vconf.c b/vconf-compat/vconf.c index abcb292..ff2df8a 100644 --- a/vconf-compat/vconf.c +++ b/vconf-compat/vconf.c @@ -456,7 +456,7 @@ EXPORT int vconf_notify_key_changed(const char *key, vconf_callback_fn cb, LOGE("vconf_notify_key_changed: key '%s' add notify error %d", key, errno); pthread_mutex_lock(&vconf_lock); - g_hash_table_remove(noti_tbl, noti->key); + g_hash_table_remove(noti_tbl, key); pthread_mutex_unlock(&vconf_lock); } /* increase reference count */ -- 2.7.4