[Groonga-commit] groonga/groonga at 771a447 [master] select drilldown: add missing error check for memory allocation

Back to archive index

naoa null+****@clear*****
Mon Apr 11 11:00:20 JST 2016


naoa	2016-04-11 11:00:20 +0900 (Mon, 11 Apr 2016)

  New Revision: 771a44726ff2b94a31a68874d9096d47951c15da
  https://github.com/groonga/groonga/commit/771a44726ff2b94a31a68874d9096d47951c15da

  Merged 3bd271b: Merge pull request #526 from naoa/add-missing-memory-check

  Message:
    select drilldown: add missing error check for memory allocation

  Modified files:
    lib/proc/proc_select.c

  Modified: lib/proc/proc_select.c (+3 -0)
===================================================================
--- lib/proc/proc_select.c    2016-04-11 00:51:08 +0900 (bb6f6af)
+++ lib/proc/proc_select.c    2016-04-11 11:00:20 +0900 (e32ea70)
@@ -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;
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index