loader: make sure we do not return garbage from help_getnext
ClosedPublic

Authored by tsoome on Mon, Apr 16, 8:55 AM.

Details

Summary

Since we do free subtopic and desc in help_getnext(), we need to set them also
NULL, so we make sure we dont get double free().

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
tsoome created this revision.Mon, Apr 16, 8:55 AM
bapt accepted this revision.Mon, Apr 16, 12:42 PM
This revision is now accepted and ready to land.Mon, Apr 16, 12:42 PM
This revision was automatically updated to reflect the committed changes.