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
40c43365
Commit
40c43365
authored
Sep 22, 2005
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed a memory leak in ha_tina.cc
parent
306dcf06
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
sql/examples/ha_tina.cc
sql/examples/ha_tina.cc
+10
-0
sql/examples/ha_tina.h
sql/examples/ha_tina.h
+3
-0
sql/handler.cc
sql/handler.cc
+4
-0
No files found.
sql/examples/ha_tina.cc
View file @
40c43365
...
...
@@ -234,6 +234,16 @@ static int free_share(TINA_SHARE *share)
DBUG_RETURN
(
result_code
);
}
bool
tina_end
()
{
if
(
tina_init
)
{
hash_free
(
&
tina_open_tables
);
VOID
(
pthread_mutex_destroy
(
&
tina_mutex
));
}
tina_init
=
0
;
return
FALSE
;
}
/*
Finds the end of a line.
...
...
sql/examples/ha_tina.h
View file @
40c43365
...
...
@@ -126,3 +126,6 @@ class ha_tina: public handler
int
find_current_row
(
byte
*
buf
);
int
chain_append
();
};
bool
tina_end
();
sql/handler.cc
View file @
40c43365
...
...
@@ -598,6 +598,10 @@ int ha_panic(enum ha_panic_function flag)
#ifdef HAVE_ARCHIVE_DB
if
(
have_archive_db
==
SHOW_OPTION_YES
)
error
|=
archive_db_end
();
#endif
#ifdef HAVE_CSV_DB
if
(
have_csv_db
==
SHOW_OPTION_YES
)
error
|=
tina_end
();
#endif
if
(
ha_finish_errors
())
error
=
1
;
...
...
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