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

« back to all changes in this revision

Viewing changes to examples/client.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:
256
256
 
257
257
  drizzle_free(&(client.drizzle));
258
258
 
259
 
  if (client.client_con_list != NULL)
260
 
    free(client.client_con_list);
 
259
  free(client.client_con_list);
261
260
 
262
261
  return 0;
263
262
}