svn: /php/php-src/ branches/PHP_5_2/ext/ldap/ldap.c branches/PHP_5_3/ext/ldap/ldap.c trunk/ext/ldap/ldap.c
| From: | Ilia Alshanetsky | Date: | Tue, 18 Aug 2009 12:44:32 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_2/ext/ldap/ldap.c branches/PHP_5_3/ext/ldap/ldap.c trunk/ext/ldap/ldap.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-60175@lists.php.net to get a copy of this message | ||
iliaa Tue, 18 Aug 2009 12:44:32 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=287450
Log:
NULL the value after free
Changed paths:
U php/php-src/branches/PHP_5_2/ext/ldap/ldap.c
U php/php-src/branches/PHP_5_3/ext/ldap/ldap.c
U php/php-src/trunk/ext/ldap/ldap.c
Modified: php/php-src/branches/PHP_5_2/ext/ldap/ldap.c
===================================================================
--- php/php-src/branches/PHP_5_2/ext/ldap/ldap.c 2009-08-18 11:50:24 UTC (rev 287449)
+++ php/php-src/branches/PHP_5_2/ext/ldap/ldap.c 2009-08-18 12:44:32 UTC (rev 287450)
@@ -221,6 +221,7 @@
if (entry->ber != NULL) {
ber_free(entry->ber, 0);
+ entry->ber = NULL;
}
zend_list_delete(entry->id);
efree(entry);
Modified: php/php-src/branches/PHP_5_3/ext/ldap/ldap.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/ldap/ldap.c 2009-08-18 11:50:24 UTC (rev 287449)
+++ php/php-src/branches/PHP_5_3/ext/ldap/ldap.c 2009-08-18 12:44:32 UTC (rev 287450)
@@ -117,6 +117,7 @@
if (entry->ber != NULL) {
ber_free(entry->ber, 0);
+ entry->ber = NULL;
}
zend_list_delete(entry->id);
efree(entry);
Modified: php/php-src/trunk/ext/ldap/ldap.c
===================================================================
--- php/php-src/trunk/ext/ldap/ldap.c 2009-08-18 11:50:24 UTC (rev 287449)
+++ php/php-src/trunk/ext/ldap/ldap.c 2009-08-18 12:44:32 UTC (rev 287450)
@@ -118,6 +118,7 @@
if (entry->ber != NULL) {
ber_free(entry->ber, 0);
+ entry->ber = NULL;
}
zend_list_delete(entry->id);
efree(entry);