]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
log: Fix AddressSanitizer: new-delete-type-mismatch 20998/head
authorBrad Hubbard <bhubbard@redhat.com>
Wed, 14 Mar 2018 03:55:03 +0000 (13:55 +1000)
committerPrashant D <pdhange@redhat.com>
Thu, 22 Mar 2018 02:30:26 +0000 (22:30 -0400)
commitbf65dab2e3bc39afc871fedb131acc8a5cf62e04
tree6770e13ff0f9e6199c3f93124cfd5326f2df6517
parentd2b27f269774641a5e33fdf56b5328e4fd4906c3
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>
(cherry picked from commit 0fe0c1173b1b3efcb407c22e736d0e2d94bf5840)

Conflicts:
src/log/Entry.h: Resolved for default destr Entry
src/log/Entry.h
src/log/EntryQueue.h
src/log/Log.cc