summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-03-02 16:16:15 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-03-02 20:51:31 +0100
commit6b6c9fc67cdd42fa8feb3d7c4f6346ed54d4619c (patch)
treeb1349dffe63936f2ea0f3848f719f5314dc0369e /include
parentb9037cbc0c96c1a08d0691d8bc2edc0e64f394ea (diff)
cid#1500437 silence Resource leak
Change-Id: Ibaa402dea5c684a08e2fe8ca8425ea92332bba9d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130887 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/o3tl/deleter.hxx1
1 files changed, 1 insertions, 0 deletions
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();
}
}