~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_qsort.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:
110
110
  /* The first element in the stack will be accessed for the last POP */
111
111
  stack[0].low=stack[0].high=0;
112
112
#endif
113
 
  pivot = (char *) my_alloca((int) size);
 
113
  pivot = (char *) malloc(size);
114
114
  ptr_cmp= size == sizeof(char*) && !((low - (char*) 0)& (sizeof(char*)-1));
115
115
 
116
116
  /* The following loop sorts elements between high and low */
209
209
      high = high_ptr;
210
210
    }
211
211
  } while (stack_ptr > stack);
212
 
  my_afree(pivot);
 
212
  free(pivot);
213
213
  SORT_RETURN;
214
214
}