aboutsummaryrefslogtreecommitdiff
path: root/lib/libcrypt/libcrypt.ldscript
diff options
context:
space:
mode:
authorPat Maddox <pat@patmaddox.com>2026-05-22 21:45:30 +0000
committerColin Percival <cperciva@FreeBSD.org>2026-05-28 22:15:34 +0000
commitd51d91b07f5bd1066652eb3d09fc5db07790824b (patch)
treec9e8725e1dea1d48845c61a9e7eec6d4d9883385 /lib/libcrypt/libcrypt.ldscript
parent1b6c85cfac36259f28b5e1461b8450600726a3e2 (diff)
syslogd: fix memory leak in casper_ttymsg()
nvlist_take_string_array(9) takes ownership of the array and its strings. casper_ttymsg() freed neither, leaking memory on every F_CONSOLE and F_TTY message. On long-running systems with high error-rate syslog traffic routed to /dev/console, syslogd.casper grew to hundreds of MB. Use nvlist_get_string_array(9) to borrow the array instead. Update casper_wallmsg() similarly. Approved by: re (cperciva) Approved by: src (des) Closes: https://github.com/freebsd/freebsd-src/pull/2222 Fixes: 61a29eca550b ("syslogd: Log messages using libcasper") MFC after: 3 days MFC to: stable/15 PR: 295488 Reported by: Pat Maddox <pat@patmaddox.com> Reviewed by: markj Tested by: dch (cherry picked from commit c783d7181d6a71cb2453f06e40c08c892510c2f2) (cherry picked from commit be03b0fb2241260ec94db431cf4f2954161f227e)
Diffstat (limited to 'lib/libcrypt/libcrypt.ldscript')
0 files changed, 0 insertions, 0 deletions