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
1fa1ea0f
Commit
1fa1ea0f
authored
Mar 19, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-5404 Can't free data returned by mariadb_dyncol_unpack on windows
add mariadb_dyncol_unpack_free()
parent
e853b6cc
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
10 deletions
+19
-10
include/ma_dyncol.h
include/ma_dyncol.h
+3
-0
libmysql/CMakeLists.txt
libmysql/CMakeLists.txt
+1
-0
mysys/ma_dyncol.c
mysys/ma_dyncol.c
+12
-0
storage/cassandra/ha_cassandra.cc
storage/cassandra/ha_cassandra.cc
+3
-10
No files found.
include/ma_dyncol.h
View file @
1fa1ea0f
...
...
@@ -220,6 +220,9 @@ mariadb_dyncol_unpack(DYNAMIC_COLUMN *str,
uint
*
count
,
MYSQL_LEX_STRING
**
names
,
DYNAMIC_COLUMN_VALUE
**
vals
);
void
mariadb_dyncol_unpack_free
(
MYSQL_LEX_STRING
*
names
,
DYNAMIC_COLUMN_VALUE
*
vals
);
int
mariadb_dyncol_column_cmp_named
(
const
MYSQL_LEX_STRING
*
s1
,
const
MYSQL_LEX_STRING
*
s2
);
...
...
libmysql/CMakeLists.txt
View file @
1fa1ea0f
...
...
@@ -248,6 +248,7 @@ mariadb_dyncol_val_str
mariadb_dyncol_val_long
mariadb_dyncol_val_double
mariadb_dyncol_unpack
mariadb_dyncol_unpack_free
mariadb_dyncol_column_cmp_named
mariadb_dyncol_column_count
mariadb_dyncol_prepare_decimal
...
...
mysys/ma_dyncol.c
View file @
1fa1ea0f
...
...
@@ -4316,6 +4316,18 @@ err:
return
rc
;
}
/**
Free arrays allocated by mariadb_dyncol_unpack()
@param names Where to put names (should be free by user)
@param vals Where to put values (should be free by user)
*/
void
mariadb_dyncol_unpack_free
(
LEX_STRING
*
names
,
DYNAMIC_COLUMN_VALUE
*
vals
)
{
my_free
(
names
);
my_free
(
vals
);
}
/**
Get not NULL column count
...
...
storage/cassandra/ha_cassandra.cc
View file @
1fa1ea0f
...
...
@@ -1925,16 +1925,9 @@ int ha_cassandra::write_dynamic_row(uint count,
void
ha_cassandra
::
free_dynamic_row
(
DYNAMIC_COLUMN_VALUE
**
vals
,
LEX_STRING
**
names
)
{
if
(
*
vals
)
{
my_free
(
*
vals
);
mariadb_dyncol_unpack_free
(
*
names
,
*
vals
);
*
vals
=
0
;
}
if
(
*
names
)
{
my_free
(
*
names
);
*
names
=
0
;
}
}
int
ha_cassandra
::
write_row
(
uchar
*
buf
)
...
...
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