Page MenuHomeFreeBSD

Fix a memory leak in bsdinstall
AcceptedPublic

Authored by trix_juniper.net on Mar 14 2017, 9:15 PM.

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
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

emaste accepted this revision.Dec 19 2017, 2:52 PM
This revision is now accepted and ready to land.Dec 19 2017, 2:52 PM