~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle-1.0/libdrizzle/drizzle.c

  • 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:
175
175
    assert(drizzle->con_list == NULL);
176
176
  }
177
177
 
178
 
  if (drizzle->pfds != NULL)
179
 
    free(drizzle->pfds);
 
178
  free(drizzle->pfds);
180
179
 
181
180
  if (drizzle->options & DRIZZLE_ALLOCATED)
182
181
    free(drizzle);