~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/hp_create.cc

  • Committer: Brian Aker
  • Date: 2009-08-03 04:55:29 UTC
  • mfrom: (1106.2.1 valgrind)
  • mto: This revision was merged to the branch mainline in revision 1107.
  • Revision ID: brian@gaz-20090803045529-dks286a8lm2mmnr8
Merge in Stewart's HEAP fix

Show diffs side-by-side

added added

removed removed

Lines of Context:
468
468
  hp_clear(share);                      /* Remove blocks from memory */
469
469
  thr_lock_delete(&share->lock);
470
470
  pthread_mutex_destroy(&share->intern_lock);
471
 
  if (share->keys)
 
471
  if (share->keydef && share->keydef->seg)
472
472
    free(share->keydef->seg);
473
 
  if (share->keys)
 
473
  if (share->keydef)
474
474
    free(share->keydef);
475
475
  free(share->column_defs);
476
476
  free((unsigned char*) share->name);