fix leak
authorMichael Wallner <mike@php.net>
Mon, 29 Oct 2018 07:52:31 +0000 (08:52 +0100)
committerMichael Wallner <mike@php.net>
Mon, 29 Oct 2018 07:52:31 +0000 (08:52 +0100)
psi.d/glob.psi

index d0c62cb..4e5589a 100644 (file)
@@ -27,4 +27,5 @@ function psi\glob(string $pattern, int $flags, array &$glob = NULL, callable $er
                to_int(gl_flags),
                to_array(*gl_pathv, gl_pathc + gl_offs, to_string(*gl_pathv))
        );
+       free globfree(buf);
 }