com php-src: Fixed memleak temporary: ext/mbstring/mbstring.c

From: Date: Mon, 24 Mar 2014 05:57:59 +0000
Subject: com php-src: Fixed memleak temporary: ext/mbstring/mbstring.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77588@lists.php.net to get a copy of this message
Commit: 50dc2ec46cc59fef176f2e0d37450c84f3b70e64 Author: Xinchen Hui <laruence@gmail.com> Mon, 24 Mar 2014 13:57:59 +0800 Parents: 807ed2eb198eacb9b0d49b3557242fb12e1b0a15 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=50dc2ec46cc59fef176f2e0d37450c84f3b70e64 Log: Fixed memleak temporary Changed paths: M ext/mbstring/mbstring.c Diff: diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index 33f26dc..9b18236 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -3514,6 +3514,7 @@ PHP_FUNCTION(mb_convert_kana) if (ret != NULL) { //??? RETVAL_STRINGL((char *)ret->val, ret->len); /* the string is already strdup()'ed */ + efree(ret->val); } else { RETVAL_FALSE; }

« previous php.cvs (#77588) next »