cid#1362174, 1362177: USE_AFTER_FREE+resource leak due to copypasta

Change-Id: Icd903335fdef3921781e2f16e98a0e10bda31e3f
Reviewed-on: https://gerrit.libreoffice.org/25641
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
This commit is contained in:
Julien Nabet 2016-05-29 21:49:08 +02:00 committed by Markus Mohrhard
parent 2ad5055145
commit 7a2bca302f

View file

@ -1469,7 +1469,7 @@ FormulaTokenArray * FormulaTokenArray::RewriteMissing( const MissingConvention &
}
if (pOcds != &aOpCodeDcountStack[0])
delete [] pOcas;
delete [] pOcds;
if (pOcas != &aOpCodeAddressStack[0])
delete [] pOcas;
if (pCtx != &aCtx[0])