Re: [OMPI devel] opal_dss.load question

2015-02-11 Thread Ralph Castain
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

[OMPI devel] opal_dss.load question

2015-02-11 Thread Howard Pritchard
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