diff options
author | Indu Bhagat <indu.bhagat@oracle.com> | 2024-05-21 12:59:55 -0700 |
---|---|---|
committer | Indu Bhagat <indu.bhagat@oracle.com> | 2024-05-21 12:59:55 -0700 |
commit | 002ccda0ef390fc2f02c0a27f01993bd5009f03d (patch) | |
tree | 0a462c5ae923126e45b477f51ee809f88558827b /gdb/opencl-lang.c | |
parent | e63b1d595021ce64d20e06a32c0ec69c9a3e56e7 (diff) | |
download | gdb-002ccda0ef390fc2f02c0a27f01993bd5009f03d.zip gdb-002ccda0ef390fc2f02c0a27f01993bd5009f03d.tar.gz gdb-002ccda0ef390fc2f02c0a27f01993bd5009f03d.tar.bz2 |
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.
Diffstat (limited to 'gdb/opencl-lang.c')
0 files changed, 0 insertions, 0 deletions