~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/hp_create.c

  • Committer: Monty Taylor
  • Date: 2008-10-06 01:30:47 UTC
  • Revision ID: monty@inaugust.com-20081006013047-6m2ejc0c4peye2k9
Removed my_free(). It turns out that it had been def'd to ignore the flags passed to it in the second arg anyway. Gotta love that.

Show diffs side-by-side

added added

removed removed

Lines of Context:
338
338
    /* Must be allocated separately for rename to work */
339
339
    if (!(share->name= my_strdup(name,MYF(0))))
340
340
    {
341
 
      my_free((uchar*) share,MYF(0));
 
341
      free((uchar*) share);
342
342
      goto err;
343
343
    }
344
344
    thr_lock_init(&share->lock);
445
445
  hp_clear(share);                      /* Remove blocks from memory */
446
446
  thr_lock_delete(&share->lock);
447
447
  pthread_mutex_destroy(&share->intern_lock);
448
 
  my_free((uchar*) share->name, MYF(0));
449
 
  my_free((uchar*) share, MYF(0));
 
448
  free((uchar*) share->name);
 
449
  free((uchar*) share);
450
450
  return;
451
451
}