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

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_close.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:
58
58
  myisam_open_list.remove(info);
59
59
 
60
60
  void * rec_buff_ptr= mi_get_rec_buff_ptr(info, info->rec_buff);
61
 
  if (rec_buff_ptr != NULL)
62
 
    free(rec_buff_ptr);
 
61
  free(rec_buff_ptr);
63
62
  if (flag)
64
63
  {
65
64
    if (share->kfile >= 0 &&