summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-03-02 17:07:50 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-03-03 04:35:08 +0100
commit914018c03a492f433e1ae5081aa3184cded9783f (patch)
tree3173783d702674e0acf79519d8e723acfe34507e /sal
parent23f124bf95cbd395d9964502d9c1a6d28a6ff203 (diff)
coverity#705120: missing unlock of mutex
Change-Id: I341ba77e459967ece5916ed897b76e9f63164e58
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/conditn.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sal/osl/unx/conditn.cxx b/sal/osl/unx/conditn.cxx
index f84ae280d8dc..90d70e1e5b5c 100644
--- a/sal/osl/unx/conditn.cxx
+++ b/sal/osl/unx/conditn.cxx
@@ -152,6 +152,8 @@ sal_Bool SAL_CALL osl_setCondition(oslCondition Condition)
"sal.osl",
"pthread_cond_broadcast failed, errno " << nRet << ", \""
<< strerror(nRet) << '"');
+ // try to unlock the mutex
+ pthread_mutex_unlock(&pCond->m_Lock);
return sal_False;
}