From: David Anderson Date: Sun, 7 Dec 2014 19:52:54 +0000 (-0800) Subject: Fix alloc-dealloc mismatch reported by ASan (malloc vs. C++ delete). X-Git-Tag: v0.92~32^2~1^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5bb86664b85c9f2c82d1457b7314faff12fd050e;p=ceph.git Fix alloc-dealloc mismatch reported by ASan (malloc vs. C++ delete). Signed-off-by: David Anderson --- diff --git a/src/common/buffer.cc b/src/common/buffer.cc index 9ecc8fd5ebfa5..9a1ac5fee69cb 100644 --- a/src/common/buffer.cc +++ b/src/common/buffer.cc @@ -328,7 +328,7 @@ static simple_spinlock_t buffer_debug_lock = SIMPLE_SPINLOCK_INITIALIZER; ~raw_pipe() { if (data) - delete data; + free(data); close_pipe(pipefds); dec_total_alloc(len); bdout << "raw_pipe " << this << " free " << (void *)data << " "