~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.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:
611
611
        unused_tables=0;
612
612
    }
613
613
  }
614
 
  my_free((uchar*) table,MYF(0));
 
614
  free((uchar*) table);
615
615
  return;
616
616
}
617
617
 
622
622
  if (table->sort.io_cache)
623
623
  {
624
624
    close_cached_file(table->sort.io_cache);
625
 
    my_free((uchar*) table->sort.io_cache,MYF(0));
 
625
    free((uchar*) table->sort.io_cache);
626
626
    table->sort.io_cache=0;
627
627
  }
628
628
  return;
1552
1552
  if (free_share)
1553
1553
  {
1554
1554
    free_table_share(table->s);
1555
 
    my_free((char*) table,MYF(0));
 
1555
    free((char*) table);
1556
1556
  }
1557
1557
  return;
1558
1558
}
1907
1907
 
1908
1908
  if (my_hash_insert(&open_cache, (uchar*)table))
1909
1909
  {
1910
 
    my_free((uchar*) table, MYF(0));
 
1910
    free((uchar*) table);
1911
1911
    return(NULL);
1912
1912
  }
1913
1913
 
2423
2423
    /* Combine the follow two */
2424
2424
    if (error > 0)
2425
2425
    {
2426
 
      my_free((uchar*)table, MYF(0));
 
2426
      free((uchar*)table);
2427
2427
      pthread_mutex_unlock(&LOCK_open);
2428
2428
      return(NULL);
2429
2429
    }
2430
2430
    if (error < 0)
2431
2431
    {
2432
 
      my_free((uchar*)table, MYF(0));
 
2432
      free((uchar*)table);
2433
2433
      pthread_mutex_unlock(&LOCK_open);
2434
2434
      return(0); // VIEW
2435
2435
    }
2982
2982
    broadcast_refresh();
2983
2983
  if (thd->locked_tables && thd->locked_tables->table_count == 0)
2984
2984
  {
2985
 
    my_free((uchar*) thd->locked_tables,MYF(0));
 
2985
    free((uchar*) thd->locked_tables);
2986
2986
    thd->locked_tables=0;
2987
2987
  }
2988
2988
  return(found);
3209
3209
                      share->db.str,"`.`",share->table_name.str,"`", NULL);
3210
3210
        thd->binlog_query(THD::STMT_QUERY_TYPE,
3211
3211
                          query, (ulong)(end-query), false, false);
3212
 
        my_free(query, MYF(0));
 
3212
        free(query);
3213
3213
      }
3214
3214
      else
3215
3215
      {
3884
3884
  {
3885
3885
    /* No need to lock share->mutex as this is not needed for tmp tables */
3886
3886
    free_table_share(share);
3887
 
    my_free((char*) tmp_table,MYF(0));
 
3887
    free((char*) tmp_table);
3888
3888
    return(0);
3889
3889
  }
3890
3890