Kaydet (Commit) 0ff4909a authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#984442 Use after free

Change-Id: I28822f6b74cbf8ace8f7a194248840cb401679be
üst cb6464fd
...@@ -879,9 +879,9 @@ bool PDFObject::emit( EmitContext& rWriteContext ) const ...@@ -879,9 +879,9 @@ bool PDFObject::emit( EmitContext& rWriteContext ) const
bRet = rWriteContext.write( pOutBytes, nOutBytes ); bRet = rWriteContext.write( pOutBytes, nOutBytes );
if( bRet ) if( bRet )
bRet = rWriteContext.write( "\nendstream\nendobj\n", 18 ); bRet = rWriteContext.write( "\nendstream\nendobj\n", 18 );
rtl_freeMemory( pStream );
if( pOutBytes != (sal_uInt8*)pStream ) if( pOutBytes != (sal_uInt8*)pStream )
rtl_freeMemory( pOutBytes ); rtl_freeMemory( pOutBytes );
rtl_freeMemory( pStream );
if( pEData ) if( pEData )
pEData->setDecryptObject( 0, 0 ); pEData->setDecryptObject( 0, 0 );
return bRet; return bRet;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment