Page MenuHomeFreeBSD

Fix a memory leak in bsdinstall
AcceptedPublic

Authored by trix_juniper.net on Mar 14 2017, 9:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 19 2023, 8:57 PM
Unknown Object (File)
Dec 13 2023, 6:27 AM
Unknown Object (File)
Jul 24 2023, 12:53 AM
Unknown Object (File)
Jun 8 2023, 4:07 AM
Unknown Object (File)
Apr 18 2023, 7:27 PM
Unknown Object (File)
Jan 3 2023, 1:09 PM
Unknown Object (File)
Dec 30 2022, 3:21 AM
Unknown Object (File)
Dec 16 2022, 12:36 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