ack/lang/m2
George Koehler 229b80a004 Free buf in GetFile().
aprintf() returns a const char *; the assignment to char * caused both
clang and gcc to warn of the dropped const.

Commit 893471a introduced a tiny memory leak, because GetFile()
stopped freeing buf.  The const return type of aprintf() suggests that
the buffer must not be freed.

Now use Malloc() to allocate the buffer and free() to free it.  This
also checks if we are out of memory, because Malloc() does the check
and aprintf() currently doesn't.
2017-11-13 21:34:31 -05:00
..
comp Free buf in GetFile(). 2017-11-13 21:34:31 -05:00
libm2 Update comment after commit 9a965ef. 2017-10-30 21:24:18 -04:00
m2mm Fix a whole lot more stray prototypes. 2016-11-24 21:47:40 +01:00
test Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00