]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
log: Fix AddressSanitizer: new-delete-type-mismatch 20930/head
authorBrad Hubbard <bhubbard@redhat.com>
Wed, 14 Mar 2018 03:55:03 +0000 (13:55 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Thu, 15 Mar 2018 02:00:31 +0000 (12:00 +1000)
commit0fe0c1173b1b3efcb407c22e736d0e2d94bf5840
treef7d144d55caade7aef6d5524864f77e0bacf6c37
parentd4eaefe3022b49c32d6a07c6b27da563f0272cc9
log: Fix AddressSanitizer: new-delete-type-mismatch

 If you directly call the operator new function, you must also directly
 call the operator delete function, and must manually call the
 destructor as well.

Fixes: http://tracker.ceph.com/issues/23324
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
src/log/Entry.h
src/log/EntryQueue.h
src/log/Log.cc