Commit cdf3606b authored by Olivier Bertrand's avatar Olivier Bertrand

- Begin fixing memory leaks

modified:
  storage/connect/connect.cc
  storage/connect/plugutil.c
parent 612b8c55
...@@ -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
......
...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment