]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Use xmalloc rather than malloc
authorAlan Modra <amodra@gmail.com>
Mon, 3 Aug 2020 01:29:38 +0000 (10:59 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 3 Aug 2020 01:29:38 +0000 (10:59 +0930)
commitee44c2ac7b3efdfd28c41cd32d7fb935b0582a97
treeff9262170c720c2e0453664a2ac5a1d481d2b394
parentbfd133d0d8432d80ea1cbfc1fc38adee0d502ba3
Use xmalloc rather than malloc

As far as I can tell, the following comment is false nowadays.
/* Calls to m-alloc get turned by sed into xm-alloc.  */

Remove it, and call xmalloc.

* ldlex.l (yy_create_string_buffer): Use xmalloc rather than malloc.
* lexsup.c (parse_args): Likewise.
ld/ChangeLog
ld/ldlex.l
ld/lexsup.c