~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to vio/vio.c

  • 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:
61
61
void vio_reset(Vio* vio, enum enum_vio_type type,
62
62
               int sd, uint flags)
63
63
{
64
 
  my_free(vio->read_buffer, MYF(MY_ALLOW_ZERO_PTR));
 
64
  free(vio->read_buffer);
65
65
  vio_init(vio, type, sd, flags);
66
66
}
67
67
 
100
100
 
101
101
  if (vio->type != VIO_CLOSED)
102
102
    vio->vioclose(vio);
103
 
  my_free((uchar*) vio->read_buffer, MYF(MY_ALLOW_ZERO_PTR));
104
 
  my_free((uchar*) vio, MYF(0));
 
103
  free((uchar*) vio->read_buffer);
 
104
  free((uchar*) vio);
105
105
}
106
106
 
107
107