php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #54329
Patch dblibmemoryleakfix revision 2011-03-21 02:25 UTC by dotslashpok at gmail dot com

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;
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Thu Apr 24 21:01:55 2014 UTC