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
Unknown Object (File)
Tue, Dec 17, 8:06 AM
Unknown Object (File)
Dec 4 2024, 3:39 AM
Unknown Object (File)
Oct 2 2024, 6:28 PM
Unknown Object (File)
Oct 2 2024, 5:22 PM
Unknown Object (File)
Sep 21 2024, 6:51 PM
Unknown Object (File)
Sep 19 2024, 10:51 PM
Unknown Object (File)
Sep 19 2024, 9:58 PM
Unknown Object (File)
Sep 19 2024, 4:15 AM
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