<p>This commit fixes a couple of presence issues (introduced in <a href="https://github.com/OpenSIPS/opensips/commit/80c48e6" class="commit-link"><tt>80c48e6</tt></a>):</p>

<ul>
<li>There was a memory leak in dlginfo_agg_nbody.</li>
<li>Bounds checking in dlginfo_agg_nbody was off by 4 (potential stack
corruption).</li>
<li>There were 2 PKG allocs, straight after one another while no alloc
was needed at all: reduced to 1 optional one.</li>
<li>Replace "dumy" with "dummy" in the vicinity.</li>
</ul>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/wdoekes/opensips wjd-fix_dialogaggr_memleak</pre>
<p>Or view, comment on, or merge it at:</p>
<p>&nbsp;&nbsp;<a href='https://github.com/OpenSIPS/opensips/pull/174'>https://github.com/OpenSIPS/opensips/pull/174</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>presence_dialoginfo: Fix memory leak in dlginfo_agg_nbody.</li>
  <li>Remove debug code.</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/174/files#diff-0">modules/presence_callinfo/add_events.c</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/174/files#diff-1">modules/presence_dialoginfo/notify_body.c</a>
    (71)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/OpenSIPS/opensips/pull/174.patch'>https://github.com/OpenSIPS/opensips/pull/174.patch</a></li>
  <li><a href='https://github.com/OpenSIPS/opensips/pull/174.diff'>https://github.com/OpenSIPS/opensips/pull/174.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href='https://github.com/OpenSIPS/opensips/pull/174'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/5479561__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwOTYzNzg1MiwiZGF0YSI6eyJpZCI6MjY5OTM1Mzd9fQ==--c0738d318fa685baf79959ab14f74c1a4826152e.gif' height='1' width='1'></p>