bridges/source/jni_uno/jni_helper.h | 1 + 1 file changed, 1 insertion(+)
New commits: commit d18f649938806cd17383b2edd8994c5a66382771 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Aug 22 09:52:20 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Aug 22 16:18:23 2022 +0200 cid#1500671 silence Resource leak Change-Id: I295d7877100b49a867a0f67e2edcc923d943401b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138664 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/bridges/source/jni_uno/jni_helper.h b/bridges/source/jni_uno/jni_helper.h index 4cc145b26435..6e82e12f4081 100644 --- a/bridges/source/jni_uno/jni_helper.h +++ b/bridges/source/jni_uno/jni_helper.h @@ -49,6 +49,7 @@ inline void jstring_to_ustring( ustr->refCount = 1; ustr->length = len; ustr->buffer[ len ] = '\0'; + // coverity[leaked_storage : FALSE] - transfer ownership to *out_ustr mem.release(); if (nullptr != *out_ustr) rtl_uString_release( *out_ustr );