vconf-compat : fix possible atomicity violation 81/67181/1 accepted/tizen/common/20160427.053710 accepted/tizen/ivi/20160426.234048 accepted/tizen/mobile/20160426.233938 accepted/tizen/tv/20160426.234029 accepted/tizen/wearable/20160426.234010 submit/tizen/20160426.022112
authorJiwoong Im <jiwoong.im@samsung.com>
Mon, 25 Apr 2016 08:58:55 +0000 (17:58 +0900)
committerJiwoong Im <jiwoong.im@samsung.com>
Mon, 25 Apr 2016 08:58:55 +0000 (17:58 +0900)
Change-Id: I50d56d26ffd227c17a55ecd014c2db554d12c959
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
vconf-compat/vconf.c

index abcb292..ff2df8a 100644 (file)
@@ -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 */