From fa548e5ca9b275ac383cadddde0f4e6d9a806f24 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Fri, 29 Jan 2016 13:56:11 +0100 Subject: [PATCH] fix leak in 5.6 --- ext/session/mod_files.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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; } -- 2.40.0