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)
Sat, Oct 25, 11:14 PM
Unknown Object (File)
Sat, Oct 25, 1:30 AM
Unknown Object (File)
Wed, Oct 15, 3:38 AM
Unknown Object (File)
Wed, Oct 15, 3:38 AM
Unknown Object (File)
Wed, Oct 15, 3:38 AM
Unknown Object (File)
Tue, Oct 14, 6:25 PM
Unknown Object (File)
Sep 27 2025, 3:55 PM
Unknown Object (File)
Sep 24 2025, 2:29 PM
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.