~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/readline.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:
35
35
    return 0;
36
36
  if (init_line_buffer(line_buff,fileno(file),IO_SIZE,max_size))
37
37
  {
38
 
    my_free(line_buff,MYF(0));
 
38
    free(line_buff);
39
39
    return 0;
40
40
  }
41
41
  return line_buff;
62
62
{
63
63
  if (line_buff)
64
64
  {
65
 
    my_free(line_buff->buffer,MYF(MY_ALLOW_ZERO_PTR));
66
 
    my_free(line_buff,MYF(0));
 
65
    free(line_buff->buffer);
 
66
    free(line_buff);
67
67
  }
68
68
}
69
69
 
76
76
      return 0;
77
77
  if (init_line_buffer_from_string(line_buff,str))
78
78
  {
79
 
    my_free(line_buff,MYF(0));
 
79
    free(line_buff);
80
80
    return 0;
81
81
  }
82
82
  return line_buff;