Page MenuHomeFreeBSD

Fix a memory leak in dhclient
ClosedPublic

Authored by trix_juniper.net on Mar 13 2017, 4:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 12:19 AM
Unknown Object (File)
Oct 25 2023, 9:58 AM
Unknown Object (File)
Jul 22 2023, 10:32 PM
Unknown Object (File)
Jul 3 2023, 6:39 PM
Unknown Object (File)
Jun 7 2023, 7:20 AM
Unknown Object (File)
Jun 4 2023, 1:15 PM
Unknown Object (File)
Jun 2 2023, 1:23 AM
Unknown Object (File)
May 11 2023, 6:26 AM
Subscribers

Details

Summary

clparse.c parse_client_lease_statement
When there is an error parsing, call free_client_lease to free the memory assigned to the variable 'lease' before returning early.

Test Plan

Use clang's static analyzer, scan-build, to find the problem and later to show resolution.

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.Mar 13 2017, 4:58 PM

Thank you for the submission! I'll take care of the other memory leaks noted by Coverity.