]> granicus.if.org Git - php/commitdiff
Free static variables in execute fuzzer
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 26 Mar 2021 10:58:36 +0000 (11:58 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 26 Mar 2021 10:59:14 +0000 (11:59 +0100)
Fixes a leak in the seed corpus.

sapi/fuzzer/fuzzer-sapi.c

index 60665f62abde67a1494c70ef7fbe6f2f7b78883c..f1eea2cd1f4b1181515425ecd7bef8bb57c118f5 100644 (file)
@@ -259,6 +259,7 @@ int fuzzer_do_request_from_buffer(
                        if (execute) {
                                zend_execute(op_array, NULL);
                        }
+                       zend_destroy_static_vars(op_array);
                        destroy_op_array(op_array);
                        efree(op_array);
                }