mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
- Begin fixing memory leaks
modified: storage/connect/connect.cc storage/connect/plugutil.c
This commit is contained in:
parent
612b8c5500
commit
cdf3606b38
2 changed files with 6 additions and 12 deletions
|
@ -74,15 +74,12 @@ PGLOBAL CntExit(PGLOBAL g)
|
||||||
PDBUSER dup= PlgGetUser(g);
|
PDBUSER dup= PlgGetUser(g);
|
||||||
|
|
||||||
CntEndDB(g);
|
CntEndDB(g);
|
||||||
PlugExit(g);
|
|
||||||
|
|
||||||
if (dup->Catalog) {
|
|
||||||
delete dup->Catalog;
|
|
||||||
dup->Catalog= NULL;
|
|
||||||
} // endif
|
|
||||||
|
|
||||||
free(dup);
|
free(dup);
|
||||||
free(g->Activityp);
|
|
||||||
|
if (g->Activityp)
|
||||||
|
delete g->Activityp;
|
||||||
|
|
||||||
|
PlugExit(g);
|
||||||
g= NULL;
|
g= NULL;
|
||||||
} // endif g
|
} // endif g
|
||||||
|
|
||||||
|
|
|
@ -174,12 +174,9 @@ 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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue