Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
75a1d1d5
Commit
75a1d1d5
authored
Sep 28, 2006
by
cmiller@zippy.cornsilk.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Additional patch to Bug#21476: Free newly-allocated memory in mysqltest.
parent
ca7ade88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
client/mysqltest.c
client/mysqltest.c
+5
-1
No files found.
client/mysqltest.c
View file @
75a1d1d5
...
@@ -1608,6 +1608,7 @@ int do_save_master_pos()
...
@@ -1608,6 +1608,7 @@ int do_save_master_pos()
int
do_let
(
struct
st_query
*
query
)
int
do_let
(
struct
st_query
*
query
)
{
{
int
ret
;
char
*
p
=
query
->
first_argument
;
char
*
p
=
query
->
first_argument
;
char
*
var_name
,
*
var_name_end
;
char
*
var_name
,
*
var_name_end
;
DYNAMIC_STRING
let_rhs_expr
;
DYNAMIC_STRING
let_rhs_expr
;
...
@@ -1636,8 +1637,11 @@ int do_let(struct st_query *query)
...
@@ -1636,8 +1637,11 @@ int do_let(struct st_query *query)
query
->
last_argument
=
query
->
end
;
query
->
last_argument
=
query
->
end
;
/* Assign var_val to var_name */
/* Assign var_val to var_name */
ret
urn
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
));
(
let_rhs_expr
.
str
+
let_rhs_expr
.
length
));
dynstr_free
(
&
let_rhs_expr
);
return
(
ret
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment