<!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">Kouhei Sutou &lt;kou****@clear*****&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2015-09-14 15:09:33 +0900 (Mon, 14 Sep 2015)</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/49d9d43466fd808a2d7cd6fb892d8057ebf5f252">49d9d43466fd808a2d7cd6fb892d8057ebf5f252</a></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Message</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; width: auto">Fix a memory leak on fast order limit with multiple match against

[groonga-dev,03496]

Reported by Gosuke Yasufuku. Thanks!!!</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/49d9d43466fd808a2d7cd6fb892d8057ebf5f252#diff-ba714ec217aa6836e39b3aea9da57ae2">ha_mroonga.cpp</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; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">  Modified: ha_mroonga.cpp (+3 -0)</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; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/49d9d43466fd808a2d7cd6fb892d8057ebf5f252#diff-ba714ec217aa6836e39b3aea9da57ae2L8164">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/49d9d43466fd808a2d7cd6fb892d8057ebf5f252#diff-ba714ec217aa6836e39b3aea9da57ae2L8165">8165</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/49d9d43466fd808a2d7cd6fb892d8057ebf5f252#diff-ba714ec217aa6836e39b3aea9da57ae2L8166">8166</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/49d9d43466fd808a2d7cd6fb892d8057ebf5f252#diff-ba714ec217aa6836e39b3aea9da57ae2L8167">8167</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-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/49d9d43466fd808a2d7cd6fb892d8057ebf5f252#diff-ba714ec217aa6836e39b3aea9da57ae2L8168">8168</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/49d9d43466fd808a2d7cd6fb892d8057ebf5f252#diff-ba714ec217aa6836e39b3aea9da57ae2L8169">8169</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/49d9d43466fd808a2d7cd6fb892d8057ebf5f252#diff-ba714ec217aa6836e39b3aea9da57ae2L8170">8170</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; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/49d9d43466fd808a2d7cd6fb892d8057ebf5f252#diff-ba714ec217aa6836e39b3aea9da57ae2R8164">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/49d9d43466fd808a2d7cd6fb892d8057ebf5f252#diff-ba714ec217aa6836e39b3aea9da57ae2R8165">8165</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/49d9d43466fd808a2d7cd6fb892d8057ebf5f252#diff-ba714ec217aa6836e39b3aea9da57ae2R8166">8166</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/49d9d43466fd808a2d7cd6fb892d8057ebf5f252#diff-ba714ec217aa6836e39b3aea9da57ae2R8167">8167</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/49d9d43466fd808a2d7cd6fb892d8057ebf5f252#diff-ba714ec217aa6836e39b3aea9da57ae2R8168">8168</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/49d9d43466fd808a2d7cd6fb892d8057ebf5f252#diff-ba714ec217aa6836e39b3aea9da57ae2R8169">8169</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/49d9d43466fd808a2d7cd6fb892d8057ebf5f252#diff-ba714ec217aa6836e39b3aea9da57ae2R8170">8170</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/49d9d43466fd808a2d7cd6fb892d8057ebf5f252#diff-ba714ec217aa6836e39b3aea9da57ae2R8171">8171</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/49d9d43466fd808a2d7cd6fb892d8057ebf5f252#diff-ba714ec217aa6836e39b3aea9da57ae2R8172">8172</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/49d9d43466fd808a2d7cd6fb892d8057ebf5f252#diff-ba714ec217aa6836e39b3aea9da57ae2R8173">8173</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; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -8165,6 +8165,9 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">FT_INFO *ha_mroonga::generic_ft_init_ext(uint flags, uint key_nr, String *key)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">     GRN_LOG(ctx, GRN_LOG_ERROR, &quot;%s&quot;, error_message);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   }</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   if (fast_order_limit) {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    if (sorted_result) {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      grn_obj_close(ctx, sorted_result);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    }</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     sorted_result = grn_table_create(ctx, NULL,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">                                      0, NULL,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">                                      GRN_OBJ_TABLE_NO_KEY, NULL,</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>