include/o3tl/deleter.hxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 6b6c9fc67cdd42fa8feb3d7c4f6346ed54d4619c
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Mar 2 16:16:15 2022 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Mar 2 20:51:31 2022 +0100

    cid#1500437 silence Resource leak
    
    Change-Id: Ibaa402dea5c684a08e2fe8ca8425ea92332bba9d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130887
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/include/o3tl/deleter.hxx b/include/o3tl/deleter.hxx
index 96f9b4b49274..76d8d5a357fd 100644
--- a/include/o3tl/deleter.hxx
+++ b/include/o3tl/deleter.hxx
@@ -58,6 +58,7 @@ template <typename uniqueptr> void 
reset_preserve_ptr_during(uniqueptr& ptr)
     // e.g. SdrObject::GetBroadcaster() is called during the destructor
     // in SdrEdgeObj::Notify(). So delete first, then clear the pointer
     delete ptr.get();
+    // coverity[leaked_storage] - not a leak, deleted on line above
     (void)ptr.release();
 }
 }

Reply via email to