mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +00:00
test/ceph_test_msgr: fix a mem leak
Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
cf1801c260
commit
7d7f9b300b
@ -1357,8 +1357,10 @@ class MarkdownDispatcher : public Dispatcher {
|
||||
Mutex::Locker l(lock);
|
||||
count.inc();
|
||||
conns.insert(m->get_connection());
|
||||
if (conns.size() < 2 && !last_mark)
|
||||
if (conns.size() < 2 && !last_mark) {
|
||||
m->put();
|
||||
return true;
|
||||
}
|
||||
|
||||
last_mark = true;
|
||||
usleep(rand() % 500);
|
||||
|
Loading…
Reference in New Issue
Block a user