~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/drizzled.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:
840
840
  free_status_vars();
841
841
  end_thr_alarm(1);                     /* Free allocated memory */
842
842
  my_free_open_file_info();
843
 
  my_free((char*) global_system_variables.date_format,
844
 
          MYF(MY_ALLOW_ZERO_PTR));
845
 
  my_free((char*) global_system_variables.time_format,
846
 
          MYF(MY_ALLOW_ZERO_PTR));
847
 
  my_free((char*) global_system_variables.datetime_format,
848
 
          MYF(MY_ALLOW_ZERO_PTR));
 
843
  free((char*) global_system_variables.date_format);
 
844
  free((char*) global_system_variables.time_format);
 
845
  free((char*) global_system_variables.datetime_format);
849
846
  if (defaults_argv)
850
847
    free_defaults(defaults_argv);
851
 
  my_free(sys_init_connect.value, MYF(MY_ALLOW_ZERO_PTR));
852
 
  my_free(sys_init_slave.value, MYF(MY_ALLOW_ZERO_PTR));
 
848
  free(sys_init_connect.value);
 
849
  free(sys_init_slave.value);
853
850
  free_tmpdir(&mysql_tmpdir_list);
854
 
  my_free(slave_load_tmpdir,MYF(MY_ALLOW_ZERO_PTR));
 
851
  free(slave_load_tmpdir);
855
852
  if (opt_bin_logname)
856
853
    free(opt_bin_logname);
857
854
  if (opt_relay_logname)
873
870
  (void *)my_error_unregister(ER_ERROR_FIRST, ER_ERROR_LAST);
874
871
  // TODO!!!! EPIC FAIL!!!! This sefaults if uncommented.
875
872
/*  if (freeme != NULL)
876
 
    my_free(freeme, MYF(MY_WME | MY_FAE | MY_ALLOW_ZERO_PTR));  */
 
873
    free(freeme);  */
877
874
  /* Tell main we are ready */
878
875
  logger.cleanup_end();
879
876
  (void) pthread_mutex_lock(&LOCK_thread_count);
1886
1883
 
1887
1884
void my_str_free_mysqld(void *ptr)
1888
1885
{
1889
 
  my_free((uchar*)ptr, MYF(MY_FAE));
 
1886
  free((uchar*)ptr);
1890
1887
}
1891
1888
 
1892
1889
 
2382
2379
    }
2383
2380
    if (ln == buf)
2384
2381
    {
2385
 
      my_free(opt_bin_logname, MYF(MY_ALLOW_ZERO_PTR));
 
2382
      free(opt_bin_logname);
2386
2383
      opt_bin_logname=my_strdup(buf, MYF(0));
2387
2384
    }
2388
2385
    if (mysql_bin_log.open_index_file(opt_binlog_index_name, ln))
4878
4875
  if (opt_secure_file_priv)
4879
4876
  {
4880
4877
    convert_dirname(buff, opt_secure_file_priv, NULL);
4881
 
    my_free(opt_secure_file_priv, MYF(0));
 
4878
    free(opt_secure_file_priv);
4882
4879
    opt_secure_file_priv= my_strdup(buff, MYF(MY_FAE));
4883
4880
  }
4884
4881
}