Revision: 161
http://informixdb.svn.sourceforge.net/informixdb/?rev=161&view=rev
Author: chaese
Date: 2007-09-12 07:19:33 -0700 (Wed, 12 Sep 2007)
Log Message:
-----------
Fix bug reported by Kristof Beyls: the smartblob check/free code really
needs to happen inside the for-i loop.
Modified Paths:
--------------
trunk/informixdb/ext/_informixdb.ec
Modified: trunk/informixdb/ext/_informixdb.ec
===================================================================
--- trunk/informixdb/ext/_informixdb.ec 2007-09-02 22:06:12 UTC (rev 160)
+++ trunk/informixdb/ext/_informixdb.ec 2007-09-12 14:19:33 UTC (rev 161)
@@ -2591,7 +2591,7 @@
struct sqlda *da = cur->daOut;
if (da && da->sqlvar) {
int i;
- for (i=0; i<da->sqld; i++)
+ for (i=0; i<da->sqld; i++) {
if (da->sqlvar[i].sqldata &&
(da->sqlvar[i].sqltype == CLOCATORTYPE)) {
loc_t *loc = (loc_t*) da->sqlvar[i].sqldata;
@@ -2603,6 +2603,7 @@
free(da->sqlvar[i].sqldata);
}
$endif;
+ }
_da_free(cur->daOut);
cur->daOut = 0;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|