com php-src: Temorary fixed memleak: ext/standard/uniqid.c
| From: | Dmitry Stogov | Date: | Mon, 03 Mar 2014 10:24:06 +0000 |
| Subject: | com php-src: Temorary fixed memleak: ext/standard/uniqid.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77787@lists.php.net to get a copy of this message | ||
Commit: 4e9f2c7c00818b78f8ad4d0b3feaae407e66d80d
Author: Xinchen Hui <laruence@gmail.com> Mon, 3 Mar 2014 18:24:06 +0800
Parents: 6374fce5dbef58cb8fc541af0f77eef3881fce0a
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4e9f2c7c00818b78f8ad4d0b3feaae407e66d80d
Log:
Temorary fixed memleak
Changed paths:
M ext/standard/uniqid.c
Diff:
diff --git a/ext/standard/uniqid.c b/ext/standard/uniqid.c
index 815dde7..ecaf6c0 100644
--- a/ext/standard/uniqid.c
+++ b/ext/standard/uniqid.c
@@ -82,7 +82,8 @@ PHP_FUNCTION(uniqid)
}
//??? RETURN_STRING(uniqid, 0);
- RETURN_STRING(uniqid);
+ RETVAL_STRING(uniqid);
+ efree(uniqid);
}
#endif
/* }}} */