Skip to content

Commit

Permalink
Merge pull request #526 from naoa/add-missing-memory-check
Browse files Browse the repository at this point in the history
select drilldown: add missing error check for memory allocation

Patch by Naoya Murakami. Thanks!!!
  • Loading branch information
kou committed Apr 11, 2016
2 parents 370c539 + 771a447 commit 3bd271b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/proc/proc_select.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,9 @@ grn_select_drilldowns_execute(grn_ctx *ctx,
}

results = GRN_PLUGIN_MALLOCN(ctx, grn_table_group_result, n_drilldowns);
if (!results) {
goto exit;
}

for (i = 0; i < n_drilldowns; i++) {
grn_table_group_result *result = results + i;
Expand Down

0 comments on commit 3bd271b

Please sign in to comment.