~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Brian Aker
  • Date: 2009-08-03 06:08:05 UTC
  • mfrom: (1106.1.5 memory-fix)
  • Revision ID: brian@gaz-20090803060805-fqaa2t3jejgwhwu2
Collection of Valgrind fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1586
1586
  return false;
1587
1587
}
1588
1588
 
 
1589
/****************************************************************************
 
1590
  Tmp_Table_Param
 
1591
****************************************************************************/
 
1592
 
 
1593
void Tmp_Table_Param::init()
 
1594
{
 
1595
  field_count= sum_func_count= func_count= hidden_field_count= 0;
 
1596
  group_parts= group_length= group_null_parts= 0;
 
1597
  quick_group= 1;
 
1598
  table_charset= 0;
 
1599
  precomputed_group_by= 0;
 
1600
  bit_fields_as_long= 0;
 
1601
}
 
1602
 
 
1603
void Tmp_Table_Param::cleanup(void)
 
1604
{
 
1605
  /* Fix for Intel compiler */
 
1606
  if (copy_field)
 
1607
  {
 
1608
    delete [] copy_field;
 
1609
    save_copy_field= copy_field= 0;
 
1610
  }
 
1611
}
 
1612
 
1589
1613
void Session::send_kill_message() const
1590
1614
{
1591
1615
  int err= killed_errno();