diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-16 12:20:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-16 16:42:52 +0100 |
commit | 0ff4909a55158cb9607986c88c44722ac2291632 (patch) | |
tree | 88533cd656966900666741fb09e76bca82ee93b0 /sdext | |
parent | cb6464fd73bc74af4952cf4dc39ffe6cb55a117f (diff) |
coverity#984442 Use after free
Change-Id: I28822f6b74cbf8ace8f7a194248840cb401679be
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/pdfimport/pdfparse/pdfentries.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sdext/source/pdfimport/pdfparse/pdfentries.cxx b/sdext/source/pdfimport/pdfparse/pdfentries.cxx index 540885e80e02..8d54a9edcc81 100644 --- a/sdext/source/pdfimport/pdfparse/pdfentries.cxx +++ b/sdext/source/pdfimport/pdfparse/pdfentries.cxx @@ -879,9 +879,9 @@ bool PDFObject::emit( EmitContext& rWriteContext ) const bRet = rWriteContext.write( pOutBytes, nOutBytes ); if( bRet ) bRet = rWriteContext.write( "\nendstream\nendobj\n", 18 ); - rtl_freeMemory( pStream ); if( pOutBytes != (sal_uInt8*)pStream ) rtl_freeMemory( pOutBytes ); + rtl_freeMemory( pStream ); if( pEData ) pEData->setDecryptObject( 0, 0 ); return bRet; |