Remove potential defects detected in the static analyzer.
[platform/upstream/iotivity.git] / service / notification / src / consumer / NSThread.c
index 9dbf64b..70bd376 100644 (file)
@@ -96,5 +96,7 @@ void NSDestroyThreadHandle(NSConsumerThread * handle)
 
     pthread_mutex_destroy(&(handle->mutex));
     pthread_mutexattr_destroy(&(handle->mutex_attr));
+
+    pthread_mutex_unlock(&g_create_mutex);
 }