~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/set_var.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:
615
615
  var_str->value= res;
616
616
  var_str->value_length= new_length;
617
617
  rw_unlock(var_mutex);
618
 
  my_free(old_value, MYF(MY_ALLOW_ZERO_PTR));
 
618
  free(old_value);
619
619
  return 0;
620
620
}
621
621
 
1581
1581
    old= (thd->variables.*offset);
1582
1582
    (thd->variables.*offset)= new_value;
1583
1583
  }
1584
 
  my_free((char*) old, MYF(MY_ALLOW_ZERO_PTR));
 
1584
  free((char*) old);
1585
1585
  return;
1586
1586
}
1587
1587
 
1620
1620
    update is aborted
1621
1621
  */
1622
1622
  var->save_result.date_time_format= date_time_format_copy(thd, format);
1623
 
  my_free((char*) format, MYF(0));
 
1623
  free((char*) format);
1624
1624
  return var->save_result.date_time_format == 0;
1625
1625
}
1626
1626
 
2068
2068
  old_value= var_str->value;
2069
2069
  var_str->value= res;
2070
2070
  var_str->value_length= str_length;
2071
 
  my_free(old_value, MYF(MY_ALLOW_ZERO_PTR));
 
2071
  free(old_value);
2072
2072
  if (log_state)
2073
2073
  {
2074
2074
    switch (log_type) {
3190
3190
  {
3191
3191
    if (!new NAMED_LIST(&key_caches, name, length, (uchar*) key_cache))
3192
3192
    {
3193
 
      my_free((char*) key_cache, MYF(0));
 
3193
      free((char*) key_cache);
3194
3194
      key_cache= 0;
3195
3195
    }
3196
3196
    else
3229
3229
                    KEY_CACHE *key_cache)
3230
3230
{
3231
3231
  ha_end_key_cache(key_cache);
3232
 
  my_free((char*) key_cache, MYF(0));
 
3232
  free((char*) key_cache);
3233
3233
}
3234
3234
 
3235
3235