projects
/
platform
/
core
/
pim
/
contacts-service.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcf9e2f
)
Missing mutex unlock
69/47469/1
author
Sunggoo Kim
<sung.goo.kim@samsung.com>
Tue, 2 Jun 2015 06:02:12 +0000
(15:02 +0900)
committer
Gukhwan Cho
<gh78.cho@samsung.com>
Thu, 3 Sep 2015 13:53:06 +0000
(22:53 +0900)
Change-Id: I739769ee1c79bf53d97e9d566f5df59f1f5899a4
client/ctsvc_client_noti.c
patch
|
blob
|
history
diff --git
a/client/ctsvc_client_noti.c
b/client/ctsvc_client_noti.c
index
6c44e97
..
f87f2f7
100644
(file)
--- a/
client/ctsvc_client_noti.c
+++ b/
client/ctsvc_client_noti.c
@@
-110,8
+110,10
@@
int ctsvc_ipc_create_for_change_subscription()
int ctsvc_ipc_recover_for_change_subscription()
{
ctsvc_mutex_lock(CTS_MUTEX_PIMS_IPC_PUBSUB);
- if (__ipc_pubsub_ref <= 0)
+ if (__ipc_pubsub_ref <= 0) {
+ ctsvc_mutex_unlock(CTS_MUTEX_PIMS_IPC_PUBSUB);
return CONTACTS_ERROR_NONE;
+ }
__ipc = pims_ipc_create_for_subscribe(CTSVC_IPC_SOCKET_PATH_FOR_CHANGE_SUBSCRIPTION);
if (!__ipc) {
CTS_ERR("pims_ipc_create_for_subscribe error\n");