commit | 983d9e065b37dac5aaa2d5a819bdd5b5a0b78c8c | [log] [tgz] |
---|---|---|
author | Colin Ian King <colin.king@canonical.com> | Thu Apr 28 15:24:37 2016 +0200 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Thu Apr 28 16:02:28 2016 +0200 |
tree | 77545e6fe46603334d6c6585ae00532f024e6872 | |
parent | 04b03594c73c1877a98c7a657cc45bf5e9d89f7c [diff] |
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>