summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-16 12:20:59 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-16 16:42:52 +0100
commit0ff4909a55158cb9607986c88c44722ac2291632 (patch)
tree88533cd656966900666741fb09e76bca82ee93b0 /sdext
parentcb6464fd73bc74af4952cf4dc39ffe6cb55a117f (diff)
coverity#984442 Use after free
Change-Id: I28822f6b74cbf8ace8f7a194248840cb401679be
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/pdfparse/pdfentries.cxx2
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;