Page MenuHomeFreeBSD

Add OF_prop_free as a counterpart to OF_getprop_alloc/OF_getencprop_alloc
ClosedPublic

Authored by gonzo on May 11 2016, 2:58 AM.
Tags
None
Referenced Files
F171302032: D6315.id16216.diff
Thu, Sep 10, 6:36 AM
Unknown Object (File)
Wed, Sep 9, 11:16 AM
Unknown Object (File)
Wed, Sep 9, 8:54 AM
Unknown Object (File)
Tue, Sep 8, 5:05 PM
Unknown Object (File)
Tue, Sep 8, 11:11 AM
Unknown Object (File)
Tue, Sep 8, 8:43 AM
Unknown Object (File)
Mon, Sep 7, 7:28 PM
Unknown Object (File)
Sun, Sep 6, 10:52 PM
Subscribers
None

Details

Summary

Introduce new function OF_prop_free that frees memory allocated by OF_getprop_alloc and OF_getencprop_alloc. Current code just calls free(9) with M_OFWPROP memory class which assumes knowledge about getprop functions' internals and leads to unneccessary code coupling

Files affected by this diff are the ones I was able to test on real hardware. The rest of free(..., M_OFWPROP) instance will be handled with idividual maintainers

Diff Detail

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

Event Timeline

gonzo retitled this revision from to Add OF_prop_free as a counterpart to OF_getprop_alloc/OF_getencprop_alloc.
gonzo updated this object.
gonzo edited the test plan for this revision. (Show Details)
gonzo added reviewers: ian, andrew, imp.
gonzo set the repository for this revision to rS FreeBSD src repository - subversion.
andrew edited edge metadata.
This revision is now accepted and ready to land.May 11 2016, 8:47 AM
This revision was automatically updated to reflect the committed changes.