summaryrefslogtreecommitdiff
path: root/cppu/source/typelib/typelib.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-15 15:34:51 +0000
committerStephan Bergmann <sbergman@redhat.com>2014-11-18 12:18:32 +0100
commitdf9efbd53d148c713f7d5c391ac06d873b9b4cc1 (patch)
treea6887c06d6fa270510ef86efb7c5ebe3cc9d13f4 /cppu/source/typelib/typelib.cxx
parent6d2e4740a5fbfe8cbf1157a439b73e1bf177c071 (diff)
coverity#440589 silence Write to pointer after free
Change-Id: I85bb3b8cb0ba25e5ebd0a0fff84bda51792cc743 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'cppu/source/typelib/typelib.cxx')
-rw-r--r--cppu/source/typelib/typelib.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index 392f012a3cce..9ab878cbf6c0 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 );
}