[bug #68192] [long-term] check all dynamic ("heap") memory allocations for success

"G. Branden Robinson" <[email protected]>
Newsgroups gmane.comp.printing.groff.bugs
Message-ID <[email protected]>
Follow-up Comment #6, bug #68192 (group groff):


commit e91aeb7cae691b5318803c52b1bf2939963cbfa2
Author: G. Branden Robinson <[email protected]>
Date:   Mon May 25 03:28:49 2026 -0500

    [tfmtodit]: Be more fastidious with heap memory.
    
    * src/utils/tfmtodit/tfmtodit.cpp (struct char_list): Declare
      destructor.
    
      (char_list::~char_list): Define destructor free(3)ing memory allocated
      by strdup(3) in constructor.
    
      (main): Handle failure of strdup(3) as a fatal error.  free(3) the
      storage it allocates when done with it.
    
    Continues the long process of fixing Savannah #68192.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68192>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCahkm8QAKCRCqLAuaBUf3
TjxWAP4qgWUNUocDRA0QbtSvhDz9VHoTr10Dh7V7SC19oYaXyQEAtF0f5rckvJm+
Z4bHc9GjB0nTf/mCqw/adH8sJbDAVwM=
=DOSu
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.