diff options
author | Bjorn Munch <bjorn.bunch@oracle.com> | 2010-07-23 15:12:58 +0200 |
---|---|---|
committer | Bjorn Munch <bjorn.bunch@oracle.com> | 2010-07-23 15:12:58 +0200 |
commit | 44568b7014f8db15092e095371d6b17e5fa269b5 (patch) | |
tree | 0de3922a2128e3445b6518e920798811b90ef940 /client/readline.cc | |
parent | f8354dddffdf2f78ccf04580b1c159bd1028ee6c (diff) | |
parent | b3a11e66a73f4cacc2f48bec8d51efa27bb4b07b (diff) | |
download | mariadb-git-44568b7014f8db15092e095371d6b17e5fa269b5.tar.gz |
merge from trunk
Diffstat (limited to 'client/readline.cc')
-rw-r--r-- | client/readline.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/readline.cc b/client/readline.cc index 73ce7c3b8c7..5c1a9951d9b 100644 --- a/client/readline.cc +++ b/client/readline.cc @@ -35,7 +35,7 @@ LINE_BUFFER *batch_readline_init(ulong max_size,FILE *file) return 0; if (init_line_buffer(line_buff,my_fileno(file),IO_SIZE,max_size)) { - my_free(line_buff,MYF(0)); + my_free(line_buff); return 0; } return line_buff; @@ -63,8 +63,8 @@ void batch_readline_end(LINE_BUFFER *line_buff) { if (line_buff) { - my_free(line_buff->buffer,MYF(MY_ALLOW_ZERO_PTR)); - my_free(line_buff,MYF(0)); + my_free(line_buff->buffer); + my_free(line_buff); } } @@ -77,7 +77,7 @@ LINE_BUFFER *batch_readline_command(LINE_BUFFER *line_buff, char * str) return 0; if (init_line_buffer_from_string(line_buff,str)) { - my_free(line_buff,MYF(0)); + my_free(line_buff); return 0; } return line_buff; |