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)
Sat, Jul 18, 1:34 AM
Unknown Object (File)
Fri, Jul 17, 1:28 PM
Unknown Object (File)
Fri, Jul 17, 10:41 AM
Unknown Object (File)
Thu, Jul 16, 11:11 AM
Unknown Object (File)
Fri, Jul 10, 8:00 PM
Unknown Object (File)
Wed, Jul 8, 7:46 PM
Unknown Object (File)
Sat, Jun 27, 3:11 PM
Unknown Object (File)
Jun 11 2026, 12:24 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.