NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/60054: libedit: adding user defined functions with narrow name/desription leaks memory
The following reply was made to PR lib/60054; it has been noted by GNATS.
From: Christos Zoulas <christos%zoulas.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: lib-bug-people%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost
Subject: Re: lib/60054: libedit: adding user defined functions with narrow
name/desription leaks memory
Date: Tue, 3 Mar 2026 17:18:35 -0500
--Apple-Mail=_0DE034AA-DA2B-477C-B795-AA48136AD9B6
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii
Isn't it simpler to always add strdup() (even in the wide case), and =
then always free the strings?
christos=
--Apple-Mail=_0DE034AA-DA2B-477C-B795-AA48136AD9B6
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename=signature.asc
Content-Type: application/pgp-signature;
name=signature.asc
Content-Description: Message signed with OpenPGP
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
iF0EARECAB0WIQS+BJlbqPkO0MDBdsRxESqxbLM7OgUCaadeOwAKCRBxESqxbLM7
OqbKAKCvEIgWP+mNVTTsAY8mpaMtC/1v2ACfS7ElLoVQ4iPgzxX3N0EY5VHlrdQ=
=Cgze
-----END PGP SIGNATURE-----
--Apple-Mail=_0DE034AA-DA2B-477C-B795-AA48136AD9B6--
Home |
Main Index |
Thread Index |
Old Index