]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: ginsn: remove unnecessary buffer allocation and free
authorIndu Bhagat <indu.bhagat@oracle.com>
Tue, 21 May 2024 19:59:55 +0000 (12:59 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Tue, 21 May 2024 19:59:55 +0000 (12:59 -0700)
commit002ccda0ef390fc2f02c0a27f01993bd5009f03d
tree0a462c5ae923126e45b477f51ee809f88558827b
parente63b1d595021ce64d20e06a32c0ec69c9a3e56e7
gas: ginsn: remove unnecessary buffer allocation and free

A previous commit 80ec235 fixed the memory leaks, but brought to light
that the code should ideally make consistent use of snprintf and not
allocate/free more buffers than necessary.

gas/
* ginsn.c (ginsn_dst_print): Use snprintf consistently.
gas/ginsn.c