From: Michael Wallner Date: Mon, 2 Nov 2015 07:18:39 +0000 (+0100) Subject: fix leak X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=70136a34090807976d66b361fbc8963c0c91f17e;p=m6w6%2Fext-psi fix leak --- diff --git a/src/parser.h b/src/parser.h index f56f278..1321f6c 100644 --- a/src/parser.h +++ b/src/parser.h @@ -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); }