cvs: /php4/ext/pgsql pgsql.c
| From: | Mark Musone | Date: | Fri, 10 Sep 1999 02:37:46 +0000 |
| Subject: | cvs: /php4/ext/pgsql pgsql.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-4294@lists.php.net to get a copy of this message | ||
musone Thu Sep 9 22:37:46 1999 EDT
Modified files:
/php4/ext/pgsql pgsql.c
Log:
fixed memory leak
Index: php4/ext/pgsql/pgsql.c
diff -u php4/ext/pgsql/pgsql.c:1.17 php4/ext/pgsql/pgsql.c:1.18
--- php4/ext/pgsql/pgsql.c:1.17 Sat Sep 4 09:18:55 1999
+++ php4/ext/pgsql/pgsql.c Thu Sep 9 22:37:46 1999
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pgsql.c,v 1.17 1999/09/04 13:18:55 zeev Exp $ */
+/* $Id: pgsql.c,v 1.18 1999/09/10 02:37:46 musone Exp $ */
#include <stdlib.h>
@@ -940,6 +940,7 @@
field_name = PQfname(pgsql_result,i);
add_assoc_stringl(return_value, field_name, data, data_len, should_copy);
}
+ efree(element);
} else {
/* NULL field, don't set it */
/* add_get_index_stringl(return_value, i, empty_string, 0, (void **) &pval_ptr); */