From: Anatol Belski Date: Fri, 29 Jan 2016 15:03:01 +0000 (+0100) Subject: fix yet another leak X-Git-Tag: php-7.2.0alpha1~620^2~47^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=39084ccc689397a11de4d231fe8629549d66ce73;p=php fix yet another leak --- diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 8f2edca386..de6cccce4e 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; }