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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
2c16fd9b
Commit
2c16fd9b
authored
Jan 22, 2022
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-24827, MDEV-20516 fixup: Use C90, plug memory leaks
parent
2b6f235a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
tests/mysql_client_test.c
tests/mysql_client_test.c
+5
-4
No files found.
tests/mysql_client_test.c
View file @
2c16fd9b
/* Copyright (c) 2002, 2014, Oracle and/or its affiliates.
Copyright (c) 2008, 202
0
, MariaDB
Copyright (c) 2008, 202
2
, MariaDB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -20005,6 +20005,7 @@ static void test_mdev24827()
rc
=
mysql_stmt_execute
(
stmt
);
check_execute
(
stmt
,
rc
);
mysql_stmt_close
(
stmt
);
rc
=
mysql_query
(
mysql
,
"DROP TABLE t1"
);
myquery
(
rc
);
...
...
@@ -20018,6 +20019,8 @@ static void test_mdev_20516()
MYSQL_STMT
*
stmt
;
int
rc
;
unsigned
long
cursor
=
CURSOR_TYPE_READ_ONLY
;
const
char
*
query
=
"CREATE VIEW v1 AS SELECT * FROM t1"
;
myheader
(
"test_mdev_20516"
);
...
...
@@ -20027,9 +20030,6 @@ static void test_mdev_20516()
rc
=
mysql_query
(
mysql
,
"CREATE TABLE t1(a INT)"
);
myquery
(
rc
);
const
char
*
query
=
"CREATE VIEW v1 AS SELECT * FROM t1"
;
stmt
=
mysql_stmt_init
(
mysql
);
check_stmt
(
stmt
);
...
...
@@ -20041,6 +20041,7 @@ static void test_mdev_20516()
rc
=
mysql_stmt_execute
(
stmt
);
check_execute
(
stmt
,
rc
);
mysql_stmt_close
(
stmt
);
rc
=
mysql_query
(
mysql
,
"DROP TABLE t1"
);
myquery
(
rc
);
...
...
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