~drizzle-trunk/drizzle/jenkins-Drizzle-Builder-187

« back to all changes in this revision

Viewing changes to libdrizzle-2.0/libdrizzle/result.cc

  • Committer: Mark Atwood
  • Date: 2011-06-30 07:03:08 UTC
  • mto: This revision was merged to the branch mainline in revision 2358.
  • Revision ID: me@mark.atwood.name-20110630070308-4380q6dqkkqv92w2
fix cppcheck redundantIfDelete0 warnings.  It is safe to deallocate a NULL pointer

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
  for (column= result->column_list; column != NULL; column= result->column_list)
132
132
    drizzle_column_free(column);
133
133
 
134
 
  if (result->column_buffer != NULL)
135
 
  {
136
 
    delete[] result->column_buffer;
137
 
  }
 
134
  delete[] result->column_buffer;
138
135
 
139
136
  if (result->options & DRIZZLE_RESULT_BUFFER_ROW)
140
137
  {