Skip to content

Commit 0d14aec

Browse files
authored
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 eb06ef4 commit 0d14aec

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)