diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-04-28 15:24:37 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-04-28 16:02:28 +0200 |
commit | 983d9e065b37dac5aaa2d5a819bdd5b5a0b78c8c (patch) | |
tree | 77545e6fe46603334d6c6585ae00532f024e6872 /mm/sparse.c | |
parent | 04b03594c73c1877a98c7a657cc45bf5e9d89f7c (diff) | |
download | op-kernel-dev-983d9e065b37dac5aaa2d5a819bdd5b5a0b78c8c.zip op-kernel-dev-983d9e065b37dac5aaa2d5a819bdd5b5a0b78c8c.tar.gz |
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/sparse.c')
0 files changed, 0 insertions, 0 deletions