com php-src: fix yet another leak: ext/session/mod_files.c

From: Date: Fri, 29 Jan 2016 15:03:33 +0000
Subject: com php-src: fix yet another leak: ext/session/mod_files.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-90807@lists.php.net to get a copy of this message
Commit: 39084ccc689397a11de4d231fe8629549d66ce73 Author: Anatol Belski <ab@php.net> Fri, 29 Jan 2016 16:03:01 +0100 Parents: eae59145544d0436d99252596014eedfa7c74d9e Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=39084ccc689397a11de4d231fe8629549d66ce73 Log: fix yet another leak Changed paths: M ext/session/mod_files.c Diff: diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 8f2edca..de6cccc 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -175,6 +175,7 @@ static void ps_files_open(ps_files *data, const char *key) data->basedir = NULL; data->basedir_len = 0; } + efree(data); php_error_docref(NULL, E_WARNING, "The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,'"); return; }

« previous php.cvs (#90807) next »