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)
Wed, Sep 2, 5:12 PM
Unknown Object (File)
Fri, Aug 28, 2:10 AM
Unknown Object (File)
Wed, Aug 19, 1:02 PM
Unknown Object (File)
Tue, Aug 11, 11:46 AM
Unknown Object (File)
Tue, Aug 11, 9:52 AM
Unknown Object (File)
Aug 3 2026, 4:07 AM
Unknown Object (File)
Jul 24 2026, 5:08 PM
Unknown Object (File)
Jul 20 2026, 9:08 AM
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