Page MenuHomeFreeBSD

Fix a memory leak in bsdinstall
AbandonedPublic

Authored by emaste on Mar 14 2017, 9:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 10, 6:23 AM
Unknown Object (File)
Fri, Nov 29, 3:12 AM
Unknown Object (File)
Fri, Nov 29, 3:12 AM
Unknown Object (File)
Fri, Nov 29, 2:52 AM
Unknown Object (File)
Oct 12 2024, 3:25 PM
Unknown Object (File)
Oct 4 2024, 7:21 AM
Unknown Object (File)
Oct 4 2024, 5:14 AM
Unknown Object (File)
Oct 3 2024, 2:19 PM
Subscribers

Details

Summary

partedit/part_wizard.c part_wizard
When wizard_parition fails it jumps to the label 'startwizard' which assigns memory to already assigned schemeroot. To fix, move the free of schemeroot.

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 Skipped
Unit
Tests Skipped