]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix alloc-dealloc mismatch reported by ASan (malloc vs. C++ delete).
authorDavid Anderson <dave@natulte.net>
Sun, 7 Dec 2014 19:52:54 +0000 (11:52 -0800)
committerDavid Anderson <dave@natulte.net>
Sun, 7 Dec 2014 19:52:54 +0000 (11:52 -0800)
Signed-off-by: David Anderson <dave@natulte.net>
src/common/buffer.cc

index 9ecc8fd5ebfa53e37f1d01e52c27f7839450dd4b..9a1ac5fee69cb5f94c711f897bba644cbe4ea075 100644 (file)
@@ -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 << " "