diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-04-28 16:24:37 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-04-28 17:02:28 +0300 |
commit | 983d9e065b37dac5aaa2d5a819bdd5b5a0b78c8c (patch) | |
tree | 77545e6fe46603334d6c6585ae00532f024e6872 /mm/madvise.c | |
parent | 04b03594c73c1877a98c7a657cc45bf5e9d89f7c (diff) | |
download | linux-983d9e065b37dac5aaa2d5a819bdd5b5a0b78c8c.tar.xz |
cpupower: bench: parse.c: fix several resource leaks
The error handling in prepare_output has several issues with
resource leaks. Ensure that filename is free'd and the directory
stream DIR is closed before returning.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Thomas Renninger <trenn@suse.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'mm/madvise.c')
0 files changed, 0 insertions, 0 deletions