Well yes - when you OBJ_RELEASE(buf), it calls free on the data blob. All you
have to do is set buf->base_ptr = NULL prior to releasing.
You could also save a lot of malloc wastage by just using
OBJ_CONSTRUCT/DESTRUCT for buf, though you still have to NULL the base_ptr
before calling DESTRUCT
Hello Folks,
I've got a question about the opal_dss.load functionality.
If I have a construct like
buf = OBJ_NEW(opal_buffer_t);
opal_dss.load(buffer, input_ptr, num_bytes_to_load);
OBJ_RELEASE(buf);
I'm finding that input_ptr has to have been something
returned by malloc and friends or else
Rolf --
Let's add the libtool issue back on the agenda for next Tuesday:
https://github.com/open-mpi/ompi/issues/311
There are now 2 PRs that can fix the issue, reflecting two different ways of
working around the underlying problem. See the description here:
https://github.com/open-mp