~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/archive/ha_archive.cc

  • Committer: Monty Taylor
  • Date: 2008-10-06 01:30:47 UTC
  • Revision ID: monty@inaugust.com-20081006013047-6m2ejc0c4peye2k9
Removed my_free(). It turns out that it had been def'd to ignore the flags passed to it in the second arg anyway. Gotta love that.

Show diffs side-by-side

added added

removed removed

Lines of Context:
378
378
      if (azclose(&(share->archive_write)))
379
379
        rc= 1;
380
380
    }
381
 
    my_free((uchar*) share, MYF(0));
 
381
    free((uchar*) share);
382
382
  }
383
383
  pthread_mutex_unlock(&archive_mutex);
384
384
 
627
627
        {
628
628
          my_read(frm_file, frm_ptr, file_stat.st_size, MYF(0));
629
629
          azwrite_frm(&create_stream, (char *)frm_ptr, file_stat.st_size);
630
 
          my_free((uchar*)frm_ptr, MYF(0));
 
630
          free((uchar*)frm_ptr);
631
631
        }
632
632
      }
633
633
      my_close(frm_file, MYF(0));
835
835
error:
836
836
  pthread_mutex_unlock(&share->mutex);
837
837
  if (read_buf)
838
 
    my_free((uchar*) read_buf, MYF(0));
 
838
    free((uchar*) read_buf);
839
839
 
840
840
  return(rc);
841
841
}
1431
1431
  if (!(r->buffer= (uchar*) my_malloc(r->length,
1432
1432
                                    MYF(MY_WME))))
1433
1433
  {
1434
 
    my_free((char*) r, MYF(MY_ALLOW_ZERO_PTR));
 
1434
    free((char*) r);
1435
1435
    return(NULL); /* purecov: inspected */
1436
1436
  }
1437
1437
 
1440
1440
 
1441
1441
void ha_archive::destroy_record_buffer(archive_record_buffer *r) 
1442
1442
{
1443
 
  my_free((char*) r->buffer, MYF(MY_ALLOW_ZERO_PTR));
1444
 
  my_free((char*) r, MYF(MY_ALLOW_ZERO_PTR));
 
1443
  free((char*) r->buffer);
 
1444
  free((char*) r);
1445
1445
  return;
1446
1446
}
1447
1447