macro: Fix memory leak with keyword "enclose" arguments.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 9 Oct 2021 16:23:52 +0000 (09:23 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 9 Oct 2021 16:23:52 +0000 (09:23 -0700)
commitf49d8549666763efac0d3cbda14e29de29976542
treef9059ae0c980374283ffc4ea6f1022052e95b71f
parent4ec7a639f968227b4be247d21b2c1e46743411db
macro: Fix memory leak with keyword "enclose" arguments.

The memory for the argument was being allocated two places, which caused
the first-allocated block to be leaked.

Found by Address Sanitizer.
src/language/lexer/macro.c