<p>This commit simple adds an hattach() call to the co_free() function in the client API. This explicitly detaches the object that is being freed from the memory pool. Otherwise, it will not be freed with this call and will not be until the API is shut down.</p>

<p>To test, there should not be any obvious change of functionality from this simple fix. You should just verify that interactive client commands still work properly, and that the client does not bomb out (the commotion CLI client uses this API to free responses when in interactive mode).</p>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/opentechinstitute/commotiond api-free</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/opentechinstitute/commotiond/pull/92'>https://github.com/opentechinstitute/commotiond/pull/92</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Made calls to the client API co_free() function explicitly detach object from memory pool so that it would actually be freed.</li>
  <li>Ensure that the client is free request and response objects while in interactive mode.</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/commotiond/pull/92/files#diff-0">src/client.c</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/commotiond/pull/92/files#diff-1">src/commotion.c</a>
    (1)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/opentechinstitute/commotiond/pull/92.patch'>https://github.com/opentechinstitute/commotiond/pull/92.patch</a></li>
  <li><a href='https://github.com/opentechinstitute/commotiond/pull/92.diff'>https://github.com/opentechinstitute/commotiond/pull/92.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/opentechinstitute/commotiond/pull/92'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/3074564__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwODU0MjE1OCwiZGF0YSI6eyJpZCI6MjYxOTc0MDN9fQ==--c362f69938859db6d4b4c9490a2d334cf29e1cd9.gif' height='1' width='1'></p>