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)
Fri, Jul 10, 1:26 PM
Unknown Object (File)
Tue, Jun 30, 6:37 PM
Unknown Object (File)
Mon, Jun 29, 12:38 PM
Unknown Object (File)
Jun 8 2026, 10:17 PM
Unknown Object (File)
May 29 2026, 8:07 PM
Unknown Object (File)
May 29 2026, 12:00 AM
Unknown Object (File)
May 27 2026, 3:23 PM
Unknown Object (File)
May 27 2026, 3: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