Skip to content

Commit 3c018e5

Browse files
f3schsawenzel
authored andcommitted
Fix memory deletion for bufferptr in SerializedInfo/RootSerializableKeyValueStore
Triggered by UBSan check in an external project (using delete on a buffer is UB and should be delete[]).
1 parent 7385ecc commit 3c018e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Common/Utils/include/CommonUtils/RootSerializableKeyValueStore.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class RootSerializableKeyValueStore
6565
~SerializedInfo()
6666
{
6767
// we are the owner of this ... so delete it
68-
delete bufferptr;
68+
delete[] bufferptr;
6969
}
7070

7171
void* objptr = nullptr; //! pointer for "caching"

0 commit comments

Comments
 (0)