<!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 <kou****@clear*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2018-09-11 11:56:46 +0900 (Tue, 11 Sep 2018)</dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Revision</dt>
<dd style="margin-left: 8.5em"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85">02d8a47f5d71bd4909d8dd96817ae720acffdc85</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, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">Fix a 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/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdf">lib/proc/proc_tokenize.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, "Liberation Mono", 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/proc/proc_tokenize.c (+4 -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, "Liberation Mono", 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/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfL268">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfL269">269</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfL270">270</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfL271">271</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfL272">272</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfL273">273</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfL274">274</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfL285">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfL286">286</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfL287">287</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfL288">288</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfL289">289</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfL290">290</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfL291">291</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", 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/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfR268">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfR269">269</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfR270">270</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfR271">271</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfR272">272</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfR273">273</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfR274">274</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfR275">275</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfR276">276</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfR287">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfR288">288</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfR289">289</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfR290">290</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfR291">291</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfR292">292</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfR293">293</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfR294">294</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/02d8a47f5d71bd4909d8dd96817ae720acffdc85#diff-de6ff979c26542af99b4631b3e4c1fdfR295">295</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", 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">@@ -269,6 +269,8 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">tokenize(grn_ctx *ctx,</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> GRN_TEXT_INIT(&name, 0);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> GRN_VOID_INIT(&value);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> for (i = 0; i < n_metadata; i++) {</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+ GRN_BULK_REWIND(&name);</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+ GRN_BULK_REWIND(&value);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_token_metadata_at(ctx, metadata, i, &name, &value);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if (GRN_TEXT_LEN(&name) == 0) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> continue;</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -286,6 +288,8 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">tokenize(grn_ctx *ctx,</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> 0,</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> value.header.domain);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+ GRN_OBJ_FIN(ctx, &name);</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+ GRN_OBJ_FIN(ctx, &value);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</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_token_cursor_close(ctx, token_cursor);</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>