[Libreoffice-commits] core.git: cppu/source

Caolán McNamara caolanm at redhat.com
Tue Nov 18 03:19:14 PST 2014


 cppu/source/typelib/typelib.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit df9efbd53d148c713f7d5c391ac06d873b9b4cc1
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Nov 15 15:34:51 2014 +0000

    coverity#440589 silence Write to pointer after free
    
    Change-Id: I85bb3b8cb0ba25e5ebd0a0fff84bda51792cc743
    Signed-off-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index 392f012..9ab878c 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -1557,6 +1557,7 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_register(
                 {
                     // switch from !OnDemand to OnDemand, so the description must be relesed
                     assert(pTDR->pType->nRefCount > 1);
+                    // coverity[freed_arg] - pType's nRefCount is > 1 here
                     typelib_typedescription_release( pTDR->pType );
                 }
 


More information about the Libreoffice-commits mailing list