From 5acb4138e33b08fcff91b94aec155dbe98185b93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Tue, 17 Oct 2023 11:35:52 +0100 Subject: [PATCH] cid#318873 silence bogus Double free MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Caolán McNamara Change-Id: Ie4b0753e305f2232673837bcf7a376ad7622c120 --- wsd/Storage.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wsd/Storage.cpp b/wsd/Storage.cpp index 0809ddb34..c2b489402 100644 --- a/wsd/Storage.cpp +++ b/wsd/Storage.cpp @@ -832,6 +832,8 @@ WopiStorage::WOPIFileInfo::WOPIFileInfo(const FileInfo& fileInfo, anonObject->set("UserFriendlyName", COOLWSD::anonymizeUsername(_username)); } anonObject->stringify(wopiResponse); + + // coverity[freed_arg] - object/anonObject's nRefCount is > 1 here } else object->stringify(wopiResponse);