diff options
author | Eric Herman <eric@freesa.org> | 2023-01-19 17:53:51 +0100 |
---|---|---|
committer | Daniel Black <daniel@mariadb.org> | 2023-01-20 09:28:35 +1100 |
commit | 6fe882cd85aee487c0534e6399ebd16c1ad2cab4 (patch) | |
tree | 3fe3e5ec0009d5937c49d77b58aecee542339efb | |
parent | 0ddbec40fbba8ce818489c82a1b679a0b33aa50e (diff) | |
download | mariadb-git-6fe882cd85aee487c0534e6399ebd16c1ad2cab4.tar.gz |
Add my_afree after my_alloca in early return case
The code already had a call to `my_afree` in the normal return case,
but failed to do so in the early return case.
-rw-r--r-- | client/mysql.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/mysql.cc b/client/mysql.cc index 4d14dc0f5f6..d53d4f304e9 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -3598,7 +3598,10 @@ print_table_data(MYSQL_RES *result) { print_field_types(result); if (!mysql_num_rows(result)) + { + my_afree((uchar*) num_flag); return; + } mysql_field_seek(result,0); } separator.copy("+",1,charset_info); |