~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_select.cc

  • 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:
13614
13614
  if (hash_init(&hash, &my_charset_bin, (uint) file->stats.records, 0, 
13615
13615
                key_length, (hash_get_key) 0, 0, 0))
13616
13616
  {
13617
 
    my_free((char*) key_buffer,MYF(0));
 
13617
    free((char*) key_buffer);
13618
13618
    return(1);
13619
13619
  }
13620
13620
 
13663
13663
      (void) my_hash_insert(&hash, org_key_pos);
13664
13664
    key_pos+=extra_length;
13665
13665
  }
13666
 
  my_free((char*) key_buffer,MYF(0));
 
13666
  free((char*) key_buffer);
13667
13667
  hash_free(&hash);
13668
13668
  file->extra(HA_EXTRA_NO_CACHE);
13669
13669
  (void) file->ha_rnd_end();
13670
13670
  return(0);
13671
13671
 
13672
13672
err:
13673
 
  my_free((char*) key_buffer,MYF(0));
 
13673
  free((char*) key_buffer);
13674
13674
  hash_free(&hash);
13675
13675
  file->extra(HA_EXTRA_NO_CACHE);
13676
13676
  (void) file->ha_rnd_end();
13758
13758
 
13759
13759
                  sizeof(CACHE_FIELD*))))
13760
13760
  {
13761
 
    my_free((uchar*) cache->buff,MYF(0));               /* purecov: inspected */
 
13761
    free((uchar*) cache->buff);         /* purecov: inspected */
13762
13762
    cache->buff=0;                              /* purecov: inspected */
13763
13763
    return(1);                          /* purecov: inspected */
13764
13764
  }