~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump.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:
621
621
 
622
622
static void free_table_ent(char *key)
623
623
{
624
 
  my_free(key, MYF(0));
 
624
  free(key);
625
625
}
626
626
 
627
627
 
642
642
    if (argument)
643
643
    {
644
644
      char *start=argument;
645
 
      my_free(opt_password,MYF(MY_ALLOW_ZERO_PTR));
 
645
      free(opt_password);
646
646
      opt_password=my_strdup(argument,MYF(MY_FAE));
647
647
      while (*argument) *argument++= 'x';               /* Destroy argument */
648
648
      if (*start)
1027
1027
{
1028
1028
  if (md_result_file && md_result_file != stdout)
1029
1029
    my_fclose(md_result_file, MYF(0));
1030
 
  my_free(opt_password, MYF(MY_ALLOW_ZERO_PTR));
 
1030
  free(opt_password);
1031
1031
  if (hash_inited(&ignore_table))
1032
1032
    hash_free(&ignore_table);
1033
1033
  if (defaults_argv)
1113
1113
  fputs(tmp, file);
1114
1114
  fputc('\'', file);
1115
1115
  check_io(file);
1116
 
  my_free(tmp, MYF(MY_WME));
 
1116
  free(tmp);
1117
1117
  return;
1118
1118
} /* unescape */
1119
1119
 
1473
1473
 
1474
1474
  if (opt_order_by_primary)
1475
1475
  {
1476
 
    my_free(order_by, MYF(MY_ALLOW_ZERO_PTR));
 
1476
    free(order_by);
1477
1477
    order_by= primary_key_fields(result_table);
1478
1478
  }
1479
1479
 
1560
1560
          if (drizzle_errno(drizzle) == ER_VIEW_INVALID)
1561
1561
            fprintf(sql_file, "\n-- failed on view %s: %s\n\n", result_table, scv_buff ? scv_buff : "");
1562
1562
 
1563
 
          my_free(scv_buff, MYF(MY_ALLOW_ZERO_PTR));
 
1563
          free(scv_buff);
1564
1564
 
1565
1565
          return(0);
1566
1566
        }
1567
1567
        else
1568
 
          my_free(scv_buff, MYF(MY_ALLOW_ZERO_PTR));
 
1568
          free(scv_buff);
1569
1569
 
1570
1570
        if (drizzle_num_rows(result))
1571
1571
        {
2659
2659
    if (include_table((uchar*) hash_key, end - hash_key))
2660
2660
    {
2661
2661
      dump_table(table,database);
2662
 
      my_free(order_by, MYF(MY_ALLOW_ZERO_PTR));
 
2662
      free(order_by);
2663
2663
      order_by= 0;
2664
2664
    }
2665
2665
  }
2799
2799
    dump_table(*pos, db);
2800
2800
 
2801
2801
  free_root(&root, MYF(0));
2802
 
  my_free(order_by, MYF(MY_ALLOW_ZERO_PTR));
 
2802
  free(order_by);
2803
2803
  order_by= 0;
2804
2804
  if (opt_xml)
2805
2805
  {