Page MenuHomeFreeBSD

Fix a memory leak in ppp

Authored by on Mar 2 2017, 1:41 AM.



ppp iface.c
Before returning because of an memory allocation error, free the memory already allocated to buf.

Test Plan

Run clang's static analyzer, scan-build, to find the problem and to show it is resolved.

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline retitled this revision from to Fix a memory leak in ppp. updated this object. edited the test plan for this revision. (Show Details) added a reviewer: stevek. set the repository for this revision to rS FreeBSD src repository.
stevek accepted this revision.Mar 2 2017, 10:39 PM
stevek edited edge metadata.

Looks reasonable to me.

This revision is now accepted and ready to land.Mar 2 2017, 10:39 PM
This revision was automatically updated to reflect the committed changes.