summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-05-30 12:28:48 +0000
committerMarcus Boerger <helly@php.net>2003-05-30 12:28:48 +0000
commit25704f07536f80ba8c721efe6ef895777bb4724e (patch)
tree5b3bfa36298dd6388ee88afedec1f4348c01891a
parent95a3fd7b3c91d64d62ed62a2595c97cbf540e201 (diff)
downloadphp-git-25704f07536f80ba8c721efe6ef895777bb4724e.tar.gz
Fix memleaks (detected by rrichards@php.net)
-rw-r--r--ext/standard/info.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/standard/info.c b/ext/standard/info.c
index ca14bb7e7d..fe0709da69 100644
--- a/ext/standard/info.c
+++ b/ext/standard/info.c
@@ -395,6 +395,7 @@ PHPAPI void php_print_info(int flag TSRMLS_DC)
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 @@ PHPAPI void php_print_info(int flag TSRMLS_DC)
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 @@ PHP_FUNCTION(php_logo_guid)
WRONG_PARAM_COUNT;
}
- RETURN_STRING(php_logo_guid(), 1);
+ RETURN_STRING(php_logo_guid(), 0);
}
/* }}} */