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)
Sun, Oct 27, 2:38 AM
Unknown Object (File)
Fri, Oct 25, 10:42 AM
Unknown Object (File)
Oct 15 2024, 12:20 PM
Unknown Object (File)
Sep 24 2024, 12:51 AM
Unknown Object (File)
Sep 23 2024, 6:25 AM
Unknown Object (File)
Sep 22 2024, 4:17 PM
Unknown Object (File)
Sep 1 2024, 5:42 PM
Unknown Object (File)
Aug 31 2024, 6:55 PM
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.