summaryrefslogtreecommitdiff
path: root/bridges
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-22 09:52:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-22 16:18:23 +0200
commitd18f649938806cd17383b2edd8994c5a66382771 (patch)
treefc0f53e1f9e2f940543afde10c10b9733e8fb08b /bridges
parentb04507b6cc36de337b6aae67ed51fd36cc4a3482 (diff)
cid#1500671 silence Resource leak
Change-Id: I295d7877100b49a867a0f67e2edcc923d943401b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138664 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'bridges')
-rw-r--r--bridges/source/jni_uno/jni_helper.h1
1 files changed, 1 insertions, 0 deletions
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 );