DBI Changes

fixed possible memory leak
This commit is contained in:
David Anderson
2004-04-03 00:52:53 +00:00
parent 2a1e246658
commit c1291e7504
2 changed files with 22 additions and 6 deletions

View File

@ -76,6 +76,7 @@ public:
v.row = 0;
next = NULL;
id = i;
free = false;
}
pgs* link()
@ -111,6 +112,10 @@ public:
destroy(v.user);
destroy(v.pass);
destroy(v.name);
destroy(v.cn);
destroy(v.res);
v.row = 0;
free = true;
}
struct pgsql {
@ -130,5 +135,6 @@ public:
private:
pgs *next;
bool free;
int id;
};