GitLab maintenance scheduled form Friday, 2021-06-18 5:00pm to Satursday, 2021-06-19 10:00pm CT - Services will be unavailable during this time.

Commit 0c52589e authored by Matthieu Dorier's avatar Matthieu Dorier

added check that bulk handle is not null before incrementing its refcount

parent f67f1ac3
......@@ -144,8 +144,10 @@ public:
bulk(const bulk& other)
: m_engine(other.m_engine), m_bulk(other.m_bulk),
m_is_local(other.m_is_local), m_eager_mode(other.m_eager_mode) {
hg_return_t ret = margo_bulk_ref_incr(m_bulk);
MARGO_ASSERT(ret, margo_bulk_ref_incr);
if(other.m_bulk != HG_BULK_NULL) {
hg_return_t ret = margo_bulk_ref_incr(m_bulk);
MARGO_ASSERT(ret, margo_bulk_ref_incr);
}
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment