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
f67896bb
Commit
f67896bb
authored
Jul 27, 2005
by
hf@deer.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug #12177 (error file isn't closed)
parent
4098c40d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+5
-2
No files found.
libmysqld/lib_sql.cc
View file @
f67896bb
...
...
@@ -320,7 +320,8 @@ extern "C"
static
my_bool
org_my_init_done
;
my_bool
server_inited
;
char
**
copy_arguments_ptr
=
0
;
char
**
copy_arguments_ptr
=
0
;
static
FILE
*
errorlog_file
=
0
;
int
STDCALL
mysql_server_init
(
int
argc
,
char
**
argv
,
char
**
groups
)
{
...
...
@@ -421,7 +422,7 @@ int STDCALL mysql_server_init(int argc, char **argv, char **groups)
opt_error_log
=
1
;
// Too long file name
else
{
freopen
(
log_error_file
,
"a+"
,
stderr
);
errorlog_file
=
freopen
(
log_error_file
,
"a+"
,
stderr
);
}
}
...
...
@@ -626,6 +627,8 @@ void STDCALL mysql_server_end()
my_free
((
char
*
)
copy_arguments_ptr
,
MYF
(
MY_ALLOW_ZERO_PTR
));
copy_arguments_ptr
=
0
;
clean_up
(
0
);
if
(
errorlog_file
)
fclose
(
errorlog_file
);
/* If library called my_init(), free memory allocated by it */
if
(
!
org_my_init_done
)
my_end
(
0
);
...
...
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