fix leak
authorMichael Wallner <mike@php.net>
Mon, 2 Nov 2015 07:18:39 +0000 (08:18 +0100)
committerMichael Wallner <mike@php.net>
Mon, 2 Nov 2015 07:18:39 +0000 (08:18 +0100)
src/parser.h

index f56f278eaf86257b91b8ebe973ea581d18999765..1321f6cc8b4292948f2a793cba4f8184b9be33ea 100644 (file)
@@ -276,6 +276,9 @@ static inline void free_decl_struct(decl_struct *s) {
        if (s->args) {
                free_decl_args(s->args);
        }
+       if (s->layout) {
+               free(s->layout);
+       }
        free(s->name);
        free(s);
 }