diff options
Diffstat (limited to 'storage/connect/connect.cc')
-rw-r--r-- | storage/connect/connect.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/storage/connect/connect.cc b/storage/connect/connect.cc index c5a29fe7416..5e80201fccf 100644 --- a/storage/connect/connect.cc +++ b/storage/connect/connect.cc @@ -83,7 +83,7 @@ PGLOBAL CntExit(PGLOBAL g) /* CntEndDB: DB termination semantic routine. */ /***********************************************************************/ void CntEndDB(PGLOBAL g) - { +{ PDBUSER dbuserp= PlgGetUser(g); if (dbuserp) { @@ -91,9 +91,14 @@ void CntEndDB(PGLOBAL g) delete dbuserp->Catalog; free(dbuserp); - } // endif dbuserp - } // end of CntEndDB + if (trace) + htrc("CntEndDB: Freeing Dup\n"); + + g->Activityp->Aptr = NULL; + } // endif dbuserp + +} // end of CntEndDB /***********************************************************************/ /* CntCheckDB: Initialize a DB application session. */ |