<p>to test:</p>

<ol>
<li>build <code>serval-crypto</code> against this version of <code>serval-dna</code>
</li>
<li>make sure <code>servald</code> is running, and has only one key in its keyring</li>
<li>With Valgrind, run either the signing function (<code>valgrind --leak-check=yes --show-reachable=yes ./serval-crypto --sign -i <SID> -m <MSG></code>) or verify function (<code>valgrind --leak-check=yes --show-reachable=yes ./ serval-crypto --verify -i <SID> -m <MSG> -s <SIG></code>).</li>
<li>Valgrind should report 0 bytes {definitely,indirectly,possibly} lost (though there will be some blocks still reachable).</li>
</ol>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/opentechinstitute/serval-dna fix-memory-leaks</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/opentechinstitute/serval-dna/pull/2'>https://github.com/opentechinstitute/serval-dna/pull/2</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>fixed keyring-related memory leaks</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/serval-dna/pull/2/files#diff-0">keyring.c</a>
    (11)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/opentechinstitute/serval-dna/pull/2.patch'>https://github.com/opentechinstitute/serval-dna/pull/2.patch</a></li>
  <li><a href='https://github.com/opentechinstitute/serval-dna/pull/2.diff'>https://github.com/opentechinstitute/serval-dna/pull/2.diff</a></li>
</ul>