projects
/
psqlodbc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
334870e
)
There is a 16-byte leak for every statement handle that has SQLFetch called on it.
author
Dave Page
<dpage@pgadmin.org>
Tue, 21 Dec 2004 15:07:41 +0000
(15:07 +0000)
committer
Dave Page
<dpage@pgadmin.org>
Tue, 21 Dec 2004 15:07:41 +0000
(15:07 +0000)
I have tracked this leak down to its source:
SC_Fetch calls extend_getdata_info, which allocates memory for the stmt.getdata_info.
However, this memory is never freed when the statement is deallocated.
[Scot Loach]
statement.c
patch
|
blob
|
blame
|
history
diff --git
a/statement.c
b/statement.c
index 436aef6cd26c0de43b9581c9687904d4a94c168b..daebdf9de4dbe7c5e43f351b31ded3cc53e2fb4b 100644
(file)
--- a/
statement.c
+++ b/
statement.c
@@
-353,6
+353,8
@@
SC_Destructor(StatementClass *self)
cancelNeedDataState(self);
if (self->callbacks)
free(self->callbacks);
+
+ GDATA_unbind_cols(SC_get_GDTI(self), TRUE);
DELETE_STMT_CS(self);
free(self);