]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
log: Fix AddressSanitizer: new-delete-type-mismatch 21084/head
authorBrad Hubbard <bhubbard@redhat.com>
Wed, 14 Mar 2018 03:55:03 +0000 (13:55 +1000)
committerPrashant D <pdhange@redhat.com>
Wed, 28 Mar 2018 02:38:56 +0000 (22:38 -0400)
commit84925209c9845bdd04d4602b463c11183e9b1a59
tree4509bd664ab995be31dbc6a88abf780dee604bc0
parent7bbe8ffc1ae5c76ed5ddeab06a3263b302dde0a7
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 Entry destructor
src/log/Entry.h
src/log/EntryQueue.h
src/log/Log.cc