<!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">2013-06-14 19:06:58 +0900 (Fri, 14 Jun 2013)</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/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e">19b8ebbb07a3d4d1545e208511b40efe89589f8e</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">Add NULL check on finalizing tokenizer

Tokenizer may be NULL when normalizer returns an error such as
unsupported encoding.</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/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#diff-0">lib/token.c</a></li>
          <li><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#diff-1">plugins/tokenizers/mecab.c</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: lib/token.c (+9 -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/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0L91">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0L92">92</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0L93">93</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0L94">94</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/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0L95">95</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0L96">96</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0L97">97</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0L201">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0L202">202</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0L203">203</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0L204">204</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/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0L205">205</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0L206">206</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0L207">207</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0L443">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0L444">444</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0L445">445</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0L446">446</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/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0L447">447</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0L448">448</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0L449">449</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/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R91">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R92">92</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R93">93</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R94">94</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R95">95</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R96">96</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R97">97</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R98">98</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R99">99</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R100">100</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R204">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R205">205</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R206">206</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R207">207</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R208">208</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R209">209</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R210">210</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R211">211</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R212">212</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R213">213</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R449">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R450">450</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R451">451</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R452">452</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R453">453</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R454">454</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R455">455</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R456">456</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R457">457</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L0R458">458</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">@@ -92,6 +92,9 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">static grn_obj *</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> uvector_fin(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   grn_uvector_tokenizer *tokenizer = user_data-&gt;ptr;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  if (!tokenizer) {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    return NULL;</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">   grn_tokenizer_token_fin(ctx, &amp;(tokenizer-&gt;token));</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   GRN_FREE(tokenizer);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   return NULL;</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -202,6 +205,9 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">static grn_obj *</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> delimited_fin(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   grn_delimited_tokenizer *tokenizer = user_data-&gt;ptr;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  if (!tokenizer) {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    return NULL;</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">   grn_tokenizer_query_close(ctx, tokenizer-&gt;query);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   grn_tokenizer_token_fin(ctx, &amp;(tokenizer-&gt;token));</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   GRN_FREE(tokenizer);</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -444,6 +450,9 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">static grn_obj *</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> ngram_fin(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   grn_ngram_tokenizer *tokenizer = user_data-&gt;ptr;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  if (!tokenizer) {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    return NULL;</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">   grn_tokenizer_token_fin(ctx, &amp;(tokenizer-&gt;token));</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   grn_tokenizer_query_close(ctx, tokenizer-&gt;query);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   GRN_FREE(tokenizer);</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
      <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: plugins/tokenizers/mecab.c (+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/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L1L240">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L1L241">241</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L1L242">242</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L1L243">243</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/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L1L244">244</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L1L245">245</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L1L246">246</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/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L1R240">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L1R241">241</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L1R242">242</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L1R243">243</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L1R244">244</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L1R245">245</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L1R246">246</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L1R247">247</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L1R248">248</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/19b8ebbb07a3d4d1545e208511b40efe89589f8e#L1R249">249</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">@@ -241,6 +241,9 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">static grn_obj *</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> mecab_fin(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   grn_mecab_tokenizer *tokenizer = user_data-&gt;ptr;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  if (!tokenizer) {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    return NULL;</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">   grn_tokenizer_token_fin(ctx, &amp;(tokenizer-&gt;token));</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   grn_tokenizer_query_close(ctx, tokenizer-&gt;query);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   if (tokenizer-&gt;buf) {</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>