Commit 2c1f4164 authored by Роман Донченко's avatar Роман Донченко Committed by Petr Machata

Fix a memory leak in parse_typedef_name

parent 7e32c64b
......@@ -387,6 +387,7 @@ parse_typedef_name(struct protolib *plib, struct locus *loc, char **str)
return NULL;
struct named_type *nt = protolib_lookup_type(plib, buf, true);
free(buf);
if (nt == NULL)
return NULL;
return nt->info;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment