~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

  • Committer: Monty Taylor
  • Date: 2008-12-06 07:22:02 UTC
  • mto: (656.1.7 devel) (660.1.5 codestyle)
  • mto: This revision was merged to the branch mainline in revision 665.
  • Revision ID: monty@inaugust.com-20081206072202-2g25o9doqr1l8euu
OOOh doggie. Got rid of my_alloca.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2717
2717
    uint32_t opens=0;
2718
2718
    for (table= session->open_tables; table ; table=table->next)
2719
2719
      opens++;
2720
 
    tables= (Table**) my_alloca(sizeof(Table*)*opens);
 
2720
    tables= (Table**) malloc(sizeof(Table*)*opens);
2721
2721
  }
2722
2722
  else
2723
2723
    tables= &session->open_tables;
2776
2776
  }
2777
2777
  if (get_locks && tables)
2778
2778
  {
2779
 
    my_afree((unsigned char*) tables);
 
2779
    free((unsigned char*) tables);
2780
2780
  }
2781
2781
  broadcast_refresh();
2782
2782
  return(error);