Project

General

Profile

Bug #39238 » 0004-release-device_attr-space-when-destroying-Device-obj.patch

Changcheng Liu, 04/11/2019 09:29 AM

View differences:

src/msg/async/rdma/Infiniband.h
~Device() {
if (active_port) {
delete active_port;
active_port = nullptr;
ceph_assert(ibv_close_device(ctxt) == 0);
}
if (device_attr) {
delete device_attr;
device_attr = nullptr;
}
}
const char* get_name() { return name;}
uint16_t get_lid() { return active_port->get_lid(); }
(8-8/9)