diff options
author | Zeev Suraski <zeev@php.net> | 1999-05-06 18:09:50 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-05-06 18:09:50 +0000 |
commit | 465c94ce1844551a88593b819b2529e51a802c1d (patch) | |
tree | a0c7c5fa1996f7cd08cbf8f91552e5f57f1584e6 /ext/standard/info.c | |
parent | 842b5ee941c8c5c9f52c69d832f5110a54b554dc (diff) | |
download | php-git-465c94ce1844551a88593b819b2529e51a802c1d.tar.gz |
* Optimize _php3_parse_gpc_data() and clean it up, plus fix a couple of Zend related memory leaks in it
Diffstat (limited to 'ext/standard/info.c')
-rw-r--r-- | ext/standard/info.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/standard/info.c b/ext/standard/info.c index 386b2d0abc..5f841a0760 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -269,6 +269,7 @@ PHPAPI void _php3_info(void) switch (_php3_hash_get_current_key((*data)->value.ht, &string_key, &num_key)) { case HASH_KEY_IS_STRING: PUTS(string_key); + efree(string_key); break; case HASH_KEY_IS_LONG: php3_printf("%ld",num_key); @@ -288,6 +289,7 @@ PHPAPI void _php3_info(void) switch (_php3_hash_get_current_key((*data)->value.ht, &string_key, &num_key)) { case HASH_KEY_IS_STRING: PUTS(string_key); + efree(string_key); break; case HASH_KEY_IS_LONG: php3_printf("%ld",num_key); @@ -307,6 +309,7 @@ PHPAPI void _php3_info(void) switch (_php3_hash_get_current_key((*data)->value.ht, &string_key, &num_key)) { case HASH_KEY_IS_STRING: PUTS(string_key); + efree(string_key); break; case HASH_KEY_IS_LONG: php3_printf("%ld",num_key); |