<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
    <dl style="line-height: 1.5; margin-left: 2em">
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
      <dd style="margin-left: 8.5em">Tetsuro IKEDA &lt;ikdtt****@gmail*****&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2009-05-11 18:02:53 +0900 (Mon, 11 May 2009)</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
      <dd style="margin-left: 8.5em"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b">4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b</a></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Log</dt>
      <dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; padding: 0.5em">fix memory leak.</pre></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
      <dd style="margin-left: 8.5em">
        <ul>
          <li><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#diff-0">src/ha_groonga.cc</a></li>
        </ul>
      </dd>
    </dl>

    <div class="diff-section" style="clear: both">
      <table style="border-collapse: collapse; border: 1px solid #aaa">
        <thead>
          <tr class="diff-header" style="border: 1px solid #aaa">
            <td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">  Modified: src/ha_groonga.cc (+3 -1)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
            </td>
          </tr>
        </thead>
        <tbody>
          <tr>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0L194">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0L195">195</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0L196">196</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0L197">197</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0L198">198</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0L199">199</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0L200">200</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0L201">201</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0L347">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0L348">348</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0L349">349</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0L350">350</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0L351">351</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0L352">352</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0L353">353</a></span>
</pre>
            </th>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0R194">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0R195">195</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0R196">196</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0R197">197</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0R198">198</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0R199">199</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0R200">200</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0R201">201</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0R202">202</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0R348">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0R349">349</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0R350">350</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0R351">351</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0R352">352</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0R353">353</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0R354">354</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/4ce1fb29736f891f9628eacf47f2fa0be2f0ed5b#L0R355">355</a></span>
</pre>
            </th>
            <td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -195,7 +195,8 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">int ha_groonga::create(const char *name, TABLE *form, HA_CREATE_INFO *info)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre">   MRN_LOG(GRN_LOG_DEBUG, &quot;-&gt; grn_obj_close: table_obj=%p&quot;, table_obj);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   grn_obj_close(mrn_ctx_tls, table_obj);</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  grn_obj_close(mrn_ctx_tls, key_type);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  grn_obj_close(mrn_ctx_tls, type);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   return 0;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre">  err:</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -348,6 +349,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">int ha_groonga::rnd_next(uchar *buf)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">       (*mysql_field)-&gt;store(*val);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     }</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     this-&gt;record_id = gid;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    grn_obj_close(mrn_ctx_tls, &amp;obj);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     return 0;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   } else {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     MRN_LOG(GRN_LOG_DEBUG, &quot;-&gt; grn_table_cursor_close: this-&gt;cursor=%p&quot;, this-&gt;cursor);</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>