<div class="gmail_quote">On Fri, Mar 16, 2012 at 12:53, Jungho Lee <span dir="ltr"><<a href="mailto:julee@mcs.anl.gov">julee@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Fri, Mar 16, 2012 at 12:50 PM, Jed Brown <<a href="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</a>> wrote:<br>
> Yes, this definitely worked when it was put in and most of the time since. I<br>
> can debug now if you like.<br>
<br>
</div>Yes, please do, and keep us updated. Thanks.</blockquote></div><br><div>The problem is that when Matt added DMCreateFieldIS() (replacing my earlier implementation that only worked with DMComposite), he did not document how the array was supposed to be freed and his two implementations do not agree. In fact, one of the branches is definitely incorrect because it returns a dangling pointer to an old stack frame.</div>
<div><br></div><div>Matt, should the string names all be copied (so the caller of this function frees the array *and* every individual field name) or should those char* just refer to the field names, the memory for which is managed by the DM?</div>