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

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_dynrec.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:
1505
1505
  if (info->s->base.blobs)
1506
1506
  {
1507
1507
    void * rec_buff_ptr= mi_get_rec_buff_ptr(info, info->rec_buff);
1508
 
    if (rec_buff_ptr != NULL)
1509
 
      free(rec_buff_ptr);
 
1508
    free(rec_buff_ptr);
1510
1509
    info->rec_buff=rec_buff;
1511
1510
  }
1512
1511
  free(old_record);