aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_man.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2021-10-04 20:24:06 +0000
committerIngo Schwarze <schwarze@openbsd.org>2021-10-04 20:24:06 +0000
commit754f01c4be9fff22d32351a29e4bcdd5b1d24cf5 (patch)
tree44b9beb6968d6be3d3493fe9cca0cc005e05850e /mdoc_man.c
parent73ca35878e62a5eb1bbcdc738e8969dd8516a313 (diff)
downloadmandoc-754f01c4be9fff22d32351a29e4bcdd5b1d24cf5.tar.gz
mandoc-754f01c4be9fff22d32351a29e4bcdd5b1d24cf5.tar.zst
mandoc-754f01c4be9fff22d32351a29e4bcdd5b1d24cf5.zip
In man(1) mode, properly clean up the resn[] result array
after processing each name given on the command line. Failure to do so resulted in a memory leak of about 50 kilobytes per name given on the command line. Since man(1) uses a few Megabytes of memory anyway and people rarely give hundreds of names on the command line, this leak did not cause practical problems, but cleaning up properly is better in any case.
Diffstat (limited to 'mdoc_man.c')
0 files changed, 0 insertions, 0 deletions