mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
Additional patch to Bug#21476: Free newly-allocated memory in mysqltest.
client/mysqltest.c: Free the dynstr.
This commit is contained in:
parent
d165736b8d
commit
216464293b
1 changed files with 5 additions and 1 deletions
|
@ -1608,6 +1608,7 @@ int do_save_master_pos()
|
|||
|
||||
int do_let(struct st_query *query)
|
||||
{
|
||||
int ret;
|
||||
char *p= query->first_argument;
|
||||
char *var_name, *var_name_end;
|
||||
DYNAMIC_STRING let_rhs_expr;
|
||||
|
@ -1636,8 +1637,11 @@ int do_let(struct st_query *query)
|
|||
|
||||
query->last_argument= query->end;
|
||||
/* Assign var_val to var_name */
|
||||
return var_set(var_name, var_name_end, let_rhs_expr.str,
|
||||
ret= var_set(var_name, var_name_end, let_rhs_expr.str,
|
||||
(let_rhs_expr.str + let_rhs_expr.length));
|
||||
dynstr_free(&let_rhs_expr);
|
||||
|
||||
return(ret);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue