Skip to content

Commit

Permalink
Fix a memory leak on error
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 30, 2013
1 parent e761ad8 commit 4de6e23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tokenizer.c
Expand Up @@ -157,6 +157,7 @@ grn_tokenizer_query_open(grn_ctx *ctx, int num_args, grn_obj **args,
normalize_flags,
table_encoding);
if (!normalized_query) {
GRN_PLUGIN_FREE(ctx, query_buf);
GRN_PLUGIN_FREE(ctx, query);
return NULL;
}
Expand Down

0 comments on commit 4de6e23

Please sign in to comment.