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 d0c62cbd16a856bfbe13a2afdfbfa0cd23e2b7aa..4e5589a579fa5b1470e7b074f4b2de62a1986663 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);
 }