Patch dblibmemoryleakfix for MSSQL related Bug #54329
Patch version 2011-03-21 02:25 UTC
Return to Bug #54329 |
Download this patch
Patch Revisions:
Developer: dotslashpok@gmail.com
Index: dblib_stmt.c
===================================================================
--- dblib_stmt.c (revision 309490)
+++ dblib_stmt.c (working copy)
@@ -39,7 +39,7 @@
for (i = 0; i < S->nrows; i++) {
for (j = 0; j < S->ncols; j++) {
- pdo_dblib_colval *val = &S->rows[i] + j;
+ pdo_dblib_colval *val = &S->rows[i*S->ncols] + j;
if (val->data) {
efree(val->data);
val->data = NULL;
|