psqlodbc.git / summary / log / commit / refs
commit 86198069efe4cffed05eecf8669c5772334d273d
Author: Hiroshi Inoue <inoue@tpf.co.jp>
Date: Fri Jul 04 03:52:49 2014 +0000
Fix a memory leak pointed out by pluto.cobain.
qresult.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/qresult.c b/qresult.c
index a1c8bf7c..7605892e 100644
--- a/qresult.c
+++ b/qresult.c
@@ -945,7 +945,7 @@ inolog("in total_read=%d cursT=%d currT=%d ad=%d total=%d rowsetSize=%d\n", self
if (0 != self->move_offset)
{
char movecmd[256];
- QResultClass *mres;
+ QResultClass *mres = NULL;
SQLULEN movement, moved;
movement = self->move_offset;
@@ -1019,6 +1019,7 @@ inolog("FETCH LAST case\n");
self->tupleField = NULL;
SC_set_rowset_start(stmt, -1, TRUE);
stmt->currTuple = -1;
+ QR_Destructor(mres);
RETURN(-1)
}
back_offset = QR_get_num_total_tuples(self) - backpt;
[parent: c51105d526cb]