cid#318873 silence bogus Double free

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ie4b0753e305f2232673837bcf7a376ad7622c120
This commit is contained in:
Caolán McNamara 2023-10-17 11:35:52 +01:00 committed by Miklos Vajna
parent acbea27acf
commit 5acb4138e3

View file

@ -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);