Bug fixes for mutex unlock.
authorjaesick.shin <jaesick.shin@samsung.com>
Thu, 1 Sep 2016 00:56:05 +0000 (09:56 +0900)
committerUze Choi <uzchoi@samsung.com>
Fri, 2 Sep 2016 01:29:38 +0000 (01:29 +0000)
Add mutex unlock for NSProviderDeleteConsumerTopic function
in NSPrvoiderMemoryCache.c

Change-Id: I9286c3fdb897409f298defab40d7479db13a2f06
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/11233
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/notification/src/provider/NSProviderMemoryCache.c

index 5f48500dd7bc76720e50f4830da46fb0a67b4576..ea89441562b8b1a6216d09e1f61067287427cc0d 100644 (file)
@@ -612,6 +612,7 @@ NSResult NSProviderDeleteConsumerTopic(NSCacheList * conTopicList,
     if(!del)\r
     {\r
         NS_LOG(DEBUG, "list head is NULL");\r
+        pthread_mutex_unlock(&NSCacheMutex);\r
         return NS_FAIL;\r
     }\r
 \r