~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_share.cc

  • Committer: Brian Aker
  • Date: 2010-10-21 20:56:58 UTC
  • mto: This revision was merged to the branch mainline in revision 1869.
  • Revision ID: brian@tangent.org-20101021205658-fh6wdhk2049tdua6
We now handle the free of the alias inside of table.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1849
1849
  outparam.cursor= 0;                           // For easier error checking
1850
1850
  outparam.db_stat= 0;
1851
1851
  outparam.getMemRoot()->free_root(MYF(0));       // Safe to call on zeroed root
1852
 
  free((char*) outparam.alias);
 
1852
  outparam.clearAlias();
1853
1853
 
1854
1854
  return ret;
1855
1855
}
1870
1870
  local_error= 1;
1871
1871
  outparam.resetTable(session, this, db_stat);
1872
1872
 
1873
 
  if (not (outparam.alias= strdup(alias)))
1874
 
    return local_error;
 
1873
  outparam.setAlias(alias);
1875
1874
 
1876
1875
  /* Allocate Cursor */
1877
1876
  if (not (outparam.cursor= db_type()->getCursor(*this)))