diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-09-15 17:37:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-09-15 21:42:41 +0200 |
commit | 3d9f7d16298760b537c4cb1c5c0e1f4875e0bc36 (patch) | |
tree | fa4ee349737fcf48093f3517e45665a10f4286c4 /sw | |
parent | 399f0aa2beb01637b343a7ce1da935b44f4bd059 (diff) |
cid#1500398 silence Use after free
I am just going to blithely assume this doesn't actually happen
Change-Id: Iad325f2f4e5243f27b6122e95522a979637a1692
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140025
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/docnode/node2lay.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/core/docnode/node2lay.cxx b/sw/source/core/docnode/node2lay.cxx index cad4ee0c6e2c..607ebada8ef4 100644 --- a/sw/source/core/docnode/node2lay.cxx +++ b/sw/source/core/docnode/node2lay.cxx @@ -367,6 +367,7 @@ SwLayoutFrame* SwNode2LayImpl::UpperFrame( SwFrame* &rpFrame, const SwNode &rNod pUpper = new SwSectionFrame(const_cast<SwSectionNode*>(static_cast<const SwSectionNode*>(pNode))->GetSection(), rpFrame); pUpper->Paste( rpFrame->GetUpper(), mbMaster ? rpFrame : rpFrame->GetNext() ); + // coverity[freed_arg : FALSE] - pUpper->Lower() is not freed here static_cast<SwSectionFrame*>(pUpper)->Init(); rpFrame = nullptr; // 'Go down' the section frame as long as the layout frame |