From: Anatol Belski Date: Fri, 29 Jan 2016 12:56:11 +0000 (+0100) Subject: fix leak in 5.6 X-Git-Tag: php-7.0.4RC1~20^2~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa548e5ca9b275ac383cadddde0f4e6d9a806f24;p=php fix leak in 5.6 --- diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 7e373812d7..06659e3487 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -361,6 +361,18 @@ PS_READ_FUNC(files) } if (!PS(id)) { + if (data) { + if (data->lastkey) { + efree(data->lastkey); + data->lastkey = NULL; + } + if (data->basedir) { + efree(data->basedir); + data->basedir = NULL; + } + efree(data); + *mod_data = NULL; + } return FAILURE; }