cvs: php4 /ext/standard info.c
| From: | Marcus Boerger | Date: | Fri, 30 May 2003 12:28:48 +0000 |
| Subject: | cvs: php4 /ext/standard info.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-21348@lists.php.net to get a copy of this message | ||
helly Fri May 30 08:28:48 2003 EDT
Modified files:
/php4/ext/standard info.c
Log:
Fix memleaks (detected by rrichards@php.net)
Index: php4/ext/standard/info.c
diff -u php4/ext/standard/info.c:1.235 php4/ext/standard/info.c:1.236
--- php4/ext/standard/info.c:1.235 Sat Apr 19 13:40:19 2003
+++ php4/ext/standard/info.c Fri May 30 08:28:48 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: info.c,v 1.235 2003/04/19 17:40:19 sas Exp $ */
+/* $Id: info.c,v 1.236 2003/05/30 12:28:48 helly Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -395,6 +395,7 @@
if (flag & PHP_INFO_GENERAL) {
char *zend_version = get_zend_version();
char temp_api[9];
+ char *logo_guid;
php_uname = php_get_uname('a');
@@ -408,7 +409,9 @@
PUTS(SG(request_info).request_uri);
}
PUTS("?=");
- PUTS(php_logo_guid());
+ logo_guid = php_logo_guid();
+ PUTS(logo_guid);
+ efree(logo_guid);
PUTS("\" alt=\"PHP Logo\" /></a>");
}
@@ -954,7 +957,7 @@
WRONG_PARAM_COUNT;
}
- RETURN_STRING(php_logo_guid(), 1);
+ RETURN_STRING(php_logo_guid(), 0);
}
/* }}} */