Page MenuHomeFreeBSD

Fix memory leak in swapon
Needs ReviewPublic

Authored by trix_juniper.net on Mar 12 2017, 3:16 PM.

Details

Reviewers
hrs
imp
Summary

swapon.c run_cmd
When the pipe command fails, free argv before returning.

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