]> granicus.if.org Git - php/commitdiff
fix yet another leak
authorAnatol Belski <ab@php.net>
Fri, 29 Jan 2016 15:03:01 +0000 (16:03 +0100)
committerAnatol Belski <ab@php.net>
Fri, 29 Jan 2016 15:03:33 +0000 (16:03 +0100)
ext/session/mod_files.c

index 8f2edca386c79778545bb338f812666ec4a6bcac..de6cccce4ea38f6922f33a8f5208a4e0c82b0b09 100644 (file)
@@ -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;
                }