~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.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:
633
633
                plugin_data(tmp_plugin, handlerton *)))
634
634
        {
635
635
          /* bad file, legacy_db_type did not match the name */
636
 
          my_free(buff, MYF(0));
 
636
          free(buff);
637
637
          goto err;
638
638
        }
639
639
        /*
649
649
        /* purecov: begin inspected */
650
650
        error= 8;
651
651
        my_error(ER_UNKNOWN_STORAGE_ENGINE, MYF(0), name.str);
652
 
        my_free(buff, MYF(0));
 
652
        free(buff);
653
653
        goto err;
654
654
        /* purecov: end */
655
655
      }
665
665
      //reading long table comment
666
666
      if (next_chunk + 2 > buff_end)
667
667
      {
668
 
          my_free(buff, MYF(0));
 
668
          free(buff);
669
669
          goto err;
670
670
      }
671
671
      share->comment.length = uint2korr(next_chunk);
672
672
      if (! (share->comment.str= strmake_root(&share->mem_root,
673
673
                               (char*)next_chunk + 2, share->comment.length)))
674
674
      {
675
 
          my_free(buff, MYF(0));
 
675
          free(buff);
676
676
          goto err;
677
677
      }
678
678
      next_chunk+= 2 + share->comment.length;
1161
1161
 
1162
1162
  delete handler_file;
1163
1163
  if (buff)
1164
 
    my_free(buff, MYF(0));
 
1164
    free(buff);
1165
1165
  return (0);
1166
1166
 
1167
1167
 err:
1168
1168
  if (buff)
1169
 
    my_free(buff, MYF(0));
 
1169
    free(buff);
1170
1170
  share->error= error;
1171
1171
  share->open_errno= my_errno;
1172
1172
  share->errarg= errarg;
1443
1443
  outparam->file= 0;                            // For easier error checking
1444
1444
  outparam->db_stat=0;
1445
1445
  free_root(&outparam->mem_root, MYF(0));       // Safe to call on zeroed root
1446
 
  my_free((char*) outparam->alias, MYF(MY_ALLOW_ZERO_PTR));
 
1446
  free((char*) outparam->alias);
1447
1447
  return (error);
1448
1448
}
1449
1449
 
1463
1463
 
1464
1464
  if (table->db_stat)
1465
1465
    error=table->file->close();
1466
 
  my_free((char*) table->alias, MYF(MY_ALLOW_ZERO_PTR));
 
1466
  free((char*) table->alias);
1467
1467
  table->alias= 0;
1468
1468
  if (table->field)
1469
1469
  {
1533
1533
  if (! save_names)
1534
1534
  {
1535
1535
    if (names)
1536
 
      my_free((uchar*) buf,MYF(0));
 
1536
      free((uchar*) buf);
1537
1537
  }
1538
1538
  else if (!names)
1539
1539
    memset(save_names, 0, sizeof(save_names));