editeng/source/editeng/editdoc.cxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit b4339ccd5e161ec156d67babd4095a1b55f315fc Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Aug 26 08:56:04 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Aug 26 11:12:04 2022 +0200 cid#1500704 silence Resource leak Change-Id: I5ab44c6aca318a56e63b8bba7dda51b4ec534a59 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138861 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index 41a8cf20f1b8..c3777f111783 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -2121,6 +2121,7 @@ void EditDoc::Release(sal_Int32 nPos) SAL_WARN( "editeng", "EditDoc::Release - out of bounds pos " << nPos); return; } + // coverity[leaked_storage] - this is on purpose, ownership should be transferred to undo/redo (void)maContents[nPos].release(); maContents.erase(maContents.begin() + nPos); }