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
cdf3606b
Commit
cdf3606b
authored
Mar 01, 2013
by
Olivier Bertrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Begin fixing memory leaks
modified: storage/connect/connect.cc storage/connect/plugutil.c
parent
612b8c55
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
11 deletions
+5
-11
storage/connect/connect.cc
storage/connect/connect.cc
+4
-7
storage/connect/plugutil.c
storage/connect/plugutil.c
+1
-4
No files found.
storage/connect/connect.cc
View file @
cdf3606b
...
@@ -74,15 +74,12 @@ PGLOBAL CntExit(PGLOBAL g)
...
@@ -74,15 +74,12 @@ PGLOBAL CntExit(PGLOBAL g)
PDBUSER
dup
=
PlgGetUser
(
g
);
PDBUSER
dup
=
PlgGetUser
(
g
);
CntEndDB
(
g
);
CntEndDB
(
g
);
PlugExit
(
g
);
free
(
dup
);
if
(
dup
->
Catalog
)
{
if
(
g
->
Activityp
)
delete
dup
->
Catalog
;
delete
g
->
Activityp
;
dup
->
Catalog
=
NULL
;
}
// endif
free
(
dup
);
PlugExit
(
g
);
free
(
g
->
Activityp
);
g
=
NULL
;
g
=
NULL
;
}
// endif g
}
// endif g
...
...
storage/connect/plugutil.c
View file @
cdf3606b
...
@@ -173,13 +173,10 @@ PGLOBAL PlugInit(LPCSTR Language, uint worksize)
...
@@ -173,13 +173,10 @@ PGLOBAL PlugInit(LPCSTR Language, uint worksize)
/***********************************************************************/
/***********************************************************************/
int
PlugExit
(
PGLOBAL
g
)
int
PlugExit
(
PGLOBAL
g
)
{
{
int
rc
=
0
;
int
rc
=
0
;
PACTIVITY
ap
;
if
(
!
g
)
if
(
!
g
)
return
rc
;
return
rc
;
else
ap
=
g
->
ActivityStart
;
free
(
g
->
Sarea
);
free
(
g
->
Sarea
);
free
(
g
);
free
(
g
);
...
...
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