Skip to content

Commit

Permalink
select drilldown: add missing error check for memory allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
naoa committed Apr 11, 2016
1 parent 370c539 commit 771a447
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 771a447

Please sign in to comment.