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)
PDBUSER dup= PlgGetUser(g);
CntEndDB(g);
PlugExit(g);
free(dup);
if (dup->Catalog) {
delete dup->Catalog;
dup->Catalog= NULL;
} // endif
if (g->Activityp)
delete g->Activityp;
free(dup);
free(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);
......
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