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, Oct 8, 1:32 PM
Unknown Object (File)
Thu, Sep 18, 12:12 AM
Unknown Object (File)
Sep 15 2025, 10:46 PM
Unknown Object (File)
Sep 11 2025, 7:53 AM
Unknown Object (File)
Sep 10 2025, 11:36 AM
Unknown Object (File)
Sep 10 2025, 4:26 AM
Unknown Object (File)
Sep 4 2025, 4:47 PM
Unknown Object (File)
Aug 19 2025, 3:56 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