mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +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);
|
||||
|
||||
CntEndDB(g);
|
||||
PlugExit(g);
|
||||
|
||||
if (dup->Catalog) {
|
||||
delete dup->Catalog;
|
||||
dup->Catalog= NULL;
|
||||
} // endif
|
||||
|
||||
free(dup);
|
||||
free(g->Activityp);
|
||||
|
||||
if (g->Activityp)
|
||||
delete g->Activityp;
|
||||
|
||||
PlugExit(g);
|
||||
g= NULL;
|
||||
} // endif g
|
||||
|
||||
|
|
|
@ -173,13 +173,10 @@ PGLOBAL PlugInit(LPCSTR Language, uint worksize)
|
|||
/***********************************************************************/
|
||||
int PlugExit(PGLOBAL g)
|
||||
{
|
||||
int rc = 0;
|
||||
PACTIVITY ap;
|
||||
int rc = 0;
|
||||
|
||||
if (!g)
|
||||
return rc;
|
||||
else
|
||||
ap = g->ActivityStart;
|
||||
|
||||
free(g->Sarea);
|
||||
free(g);
|
||||
|
|
Loading…
Add table
Reference in a new issue