mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-26 10:25:41 +00:00
Fixed memory leak
This commit is contained in:
1 parent
13f0c8b18c
commit
a6123151c7
1 file changed
+3
-1
@@ -4031,7 +4031,9 @@ PHP_FUNCTION(getenv)
|
||||
ptr = sapi_getenv(str, str_len TSRMLS_CC);
|
||||
if (ptr) {
|
||||
//??? RETURN_STRING(ptr, 0);
|
||||
RETURN_STRING(ptr);
|
||||
RETVAL_STRING(ptr);
|
||||
efree(ptr);
|
||||
return;
|
||||
}
|
||||
#ifdef PHP_WIN32
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user