~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_db.cc

  • Committer: Monty Taylor
  • Date: 2008-10-04 17:33:56 UTC
  • Revision ID: monty@inaugust.com-20081004173356-udagzm2uxfsbk4un
RemovedĀ x_freeĀ calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1122
1122
      the previous database name, we should do it explicitly.
1123
1123
    */
1124
1124
 
1125
 
    x_free(thd->db);
 
1125
    if (thd->db)
 
1126
      free(thd->db);
1126
1127
 
1127
1128
    thd->reset_db(new_db_name->str, new_db_name->length);
1128
1129
  }