sw/source/core/doc/htmltbl.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 02663c8ba0cfe6bf71070ed2e02d13f1ced895d4
Author: Caolán McNamara <[email protected]>
AuthorDate: Sun Aug 28 14:38:07 2022 +0100
Commit: Caolán McNamara <[email protected]>
CommitDate: Sun Aug 28 20:14:04 2022 +0200
cid#1500473 silence Resource leak
Change-Id: Ibf6b453b77d3fc83d40b04e0003f7f009df23e10
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138942
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <[email protected]>
diff --git a/sw/source/core/doc/htmltbl.cxx b/sw/source/core/doc/htmltbl.cxx
index 3fdc83bfcdfb..ffa1a63267e2 100644
--- a/sw/source/core/doc/htmltbl.cxx
+++ b/sw/source/core/doc/htmltbl.cxx
@@ -679,6 +679,7 @@ void SwHTMLTableLayout::AutoLayoutPass1()
if (xConstraints)
{
SwHTMLTableLayoutConstraints* pConstraints =
xConstraints->InsertNext(pConstr);
+ // coverity[leaked_storage] - ownership transferred to
pConstraints chain
xConstraints.release();
xConstraints.reset(pConstraints);
}