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
46ffd47f
Commit
46ffd47f
authored
Jul 20, 2020
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed wrong free in comp_err
parent
d55f8a24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
extra/comp_err.c
extra/comp_err.c
+4
-1
No files found.
extra/comp_err.c
View file @
46ffd47f
...
...
@@ -66,6 +66,7 @@ const char *empty_string= ""; /* For empty states */
*/
const
char
*
default_language
=
"eng"
;
my_bool
default_language_changed
=
0
;
uint
er_offset
=
1000
;
my_bool
info_flag
=
0
;
...
...
@@ -440,7 +441,8 @@ static void clean_up(struct languages *lang_head, struct errors *error_head)
struct
errors
*
tmp_error
,
*
next_error
;
uint
count
,
i
;
my_free
((
void
*
)
default_language
);
if
(
default_language_changed
)
my_free
((
void
*
)
default_language
);
for
(
tmp_lang
=
lang_head
;
tmp_lang
;
tmp_lang
=
next_language
)
{
...
...
@@ -562,6 +564,7 @@ static uint parse_input_file(const char *file_name, struct errors **top_error,
"Failed to parse the default language line. Aborting
\n
"
);
DBUG_RETURN
(
0
);
}
default_language_changed
=
1
;
continue
;
}
...
...
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