~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle-2.0/libdrizzle/drizzle.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:
170
170
    assert(drizzle->query_list == NULL);
171
171
  }
172
172
 
173
 
  if (drizzle->pfds != NULL)
174
 
    free(drizzle->pfds);
 
173
  free(drizzle->pfds);
175
174
 
176
175
  if (drizzle->options & DRIZZLE_ALLOCATED)
177
176
    delete drizzle;