Page MenuHomeFreeBSD

When returning an error and freeing allocated memory from ucs2_to_utf8 and utf8_to_ucs2, be sure to NULL out the return pointer too, rather than return a pointer to free memory.
ClosedPublic

Authored by imp on Jan 15 2018, 4:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 22 2023, 11:53 PM
Unknown Object (File)
Sep 2 2023, 6:16 PM
Unknown Object (File)
Aug 27 2023, 12:25 PM
Unknown Object (File)
May 13 2023, 4:26 AM
Unknown Object (File)
Jan 1 2023, 4:16 AM
Unknown Object (File)
Dec 13 2022, 8:00 AM
Subscribers
None

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jan 15 2018, 8:02 PM
This revision was automatically updated to reflect the committed changes.