~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_class.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:
70
70
{
71
71
  char *pos= (char*) entry+ALIGN_SIZE(sizeof(*entry));
72
72
  if (entry->value && entry->value != pos)
73
 
    my_free(entry->value, MYF(0));
74
 
  my_free((char*) entry,MYF(0));
 
73
    free(entry->value);
 
74
  free((char*) entry);
75
75
}
76
76
 
77
77
bool Key_part_spec::operator==(const Key_part_spec& other) const
677
677
  delete_dynamic(&user_var_events);
678
678
  hash_free(&user_vars);
679
679
  close_temporary_tables(this);
680
 
  my_free((char*) variables.time_format, MYF(MY_ALLOW_ZERO_PTR));
681
 
  my_free((char*) variables.date_format, MYF(MY_ALLOW_ZERO_PTR));
682
 
  my_free((char*) variables.datetime_format, MYF(MY_ALLOW_ZERO_PTR));
 
680
  free((char*) variables.time_format);
 
681
  free((char*) variables.date_format);
 
682
  free((char*) variables.datetime_format);
683
683
  
684
684
  if (global_read_lock)
685
685
    unlock_global_read_lock(this);
2262
2262
void xid_free_hash(void *ptr)
2263
2263
{
2264
2264
  if (!((XID_STATE*)ptr)->in_thd)
2265
 
    my_free((uchar*)ptr, MYF(0));
 
2265
    free((uchar*)ptr);
2266
2266
}
2267
2267
 
2268
2268
bool xid_cache_init()
2496
2496
    ~Row_data_memory()
2497
2497
    {
2498
2498
      if (m_memory != 0 && m_release_memory_on_destruction)
2499
 
        my_free((uchar*) m_memory, MYF(MY_WME));
 
2499
        free((uchar*) m_memory);
2500
2500
    }
2501
2501
 
2502
2502
    /**