summaryrefslogtreecommitdiff
path: root/formula/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-22 16:21:21 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-22 21:23:50 +0200
commitcd816c0b4e698386a482f20c975281a0f3a7d332 (patch)
tree2a684b3a87a020be0daea1e6c673e2e574c29c18 /formula/source
parent37494dc5457f5feb44465d2eb508a5f77fec74cd (diff)
cid#1509296 silence Use after free
Change-Id: I6c1d8c0365cb59f3c63537c08e27a34bac111aaf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138705 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'formula/source')
-rw-r--r--formula/source/core/api/FormulaCompiler.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx
index 591b28744289..55e65ae9fd7c 100644
--- a/formula/source/core/api/FormulaCompiler.cxx
+++ b/formula/source/core/api/FormulaCompiler.cxx
@@ -2053,6 +2053,7 @@ void FormulaCompiler::IntersectionLine()
FormulaTokenRef pIntersect( new FormulaByteToken( ocIntersect));
// Replace ocSpaces with ocIntersect so that when switching
// formula syntax the correct operator string is created.
+ // coverity[freed_arg : FALSE] - FormulaTokenRef has a ref so ReplaceToken won't delete pIntersect
pArr->ReplaceToken( nCodeIndex, pIntersect.get(), FormulaTokenArray::ReplaceMode::CODE_ONLY);
PutCode( pIntersect);
}