[Libreoffice-commits] core.git: Branch 'aoo/trunk' - sal/osl

Pedro Giffuni pfg at apache.org
Thu Dec 3 00:08:03 PST 2015


 sal/osl/unx/conditn.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 8be34a82ac1fe1b6769f5daa16568d1c65727fb1
Author: Pedro Giffuni <pfg at apache.org>
Date:   Thu Dec 3 05:00:22 2015 +0000

    Missing Unlock
    
    Condition broadcast failed but silently try to unlock the mutex.
    
    CID:	705120

diff --git a/sal/osl/unx/conditn.c b/sal/osl/unx/conditn.c
index 706614b..814f399 100644
--- a/sal/osl/unx/conditn.c
+++ b/sal/osl/unx/conditn.c
@@ -149,6 +149,7 @@ sal_Bool SAL_CALL osl_setCondition(oslCondition Condition)
    {
        OSL_TRACE("osl_setCondition : condition broadcast failed. Errno: %d; %s\n",
                   nRet, strerror(nRet));
+       (void)pthread_mutex_unlock(&pCond->m_Lock);
        return sal_False;
    }
 


More information about the Libreoffice-commits mailing list