Page MenuHomeFreeBSD

Fix memory leak in swapon
Needs ReviewPublic

Authored by trix_juniper.net on Mar 12 2017, 3:16 PM.
Tags
None
Referenced Files
F108810957: D9978.diff
Tue, Jan 28, 4:47 AM
Unknown Object (File)
Thu, Jan 23, 4:19 PM
Unknown Object (File)
Thu, Jan 23, 2:06 PM
Unknown Object (File)
Sun, Jan 19, 10:06 PM
Unknown Object (File)
Wed, Jan 15, 6:22 AM
Unknown Object (File)
Dec 17 2024, 8:06 AM
Unknown Object (File)
Dec 4 2024, 3:39 AM
Unknown Object (File)
Oct 2 2024, 6:28 PM
Subscribers
None

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