parse: fix how cleanup attributes are handled
commit699e7048f8c3a772b31a009f78cd7ea8bbad7a30
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 11 Sep 2023 14:14:02 +0000 (11 17:14 +0300)
committerDan Carpenter <dan.carpenter@linaro.org>
Mon, 11 Sep 2023 14:14:02 +0000 (11 17:14 +0300)
treed15167dc5952f82a341651b3ae24786830f523e0
parent9c1a98c3799fcdfebc636a645fa8801e98c7dae0
parse: fix how cleanup attributes are handled

Imagine you a declaration like:

int a __attribute__((__cleanup__(undo))) = 1, b = 2;

The cleanup attribute should only apply to a, but the original code applied
it to both a and b.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
parse.c