- Begin fixing memory leaks

modified:
  storage/connect/connect.cc
  storage/connect/plugutil.c
This commit is contained in:
Olivier Bertrand 2013-03-01 22:21:48 +01:00
parent 612b8c5500
commit cdf3606b38
2 changed files with 6 additions and 12 deletions

View file

@ -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

View file

@ -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);