Bug fixes for unlock mutex.
authorjaesick.shin <jaesick.shin@samsung.com>
Wed, 24 Aug 2016 08:42:09 +0000 (17:42 +0900)
committerUze Choi <uzchoi@samsung.com>
Thu, 25 Aug 2016 00:37:04 +0000 (00:37 +0000)
Add unlock mutex NSStorageDelete.

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

index f028fff93a3d63ca03fcb989c9e38c8bf057415d..712aa52bedad75e281e89abaf3584c9119b0f416 100644 (file)
@@ -419,6 +419,7 @@ NSResult NSStorageDelete(NSCacheList * list, const char * delId)
     if(!del)\r
     {\r
         NS_LOG(DEBUG, "list head is NULL");\r
+        pthread_mutex_unlock(&NSCacheMutex);\r
         return NS_FAIL;\r
     }\r
 \r