Page MenuHomeFreeBSD

Fix a memory leak in bsdinstall
AbandonedPublic

Authored by emaste on Mar 14 2017, 9:15 PM.
Tags
None
Referenced Files
F142064709: D10008.diff
Thu, Jan 15, 4:51 PM
Unknown Object (File)
Sat, Jan 10, 4:38 AM
Unknown Object (File)
Dec 5 2025, 1:05 PM
Unknown Object (File)
Dec 4 2025, 8:48 AM
Unknown Object (File)
Nov 28 2025, 10:00 PM
Unknown Object (File)
Nov 24 2025, 10:09 PM
Unknown Object (File)
Nov 19 2025, 5:51 AM
Unknown Object (File)
Nov 14 2025, 1:43 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