On 10/16/2011 08:13 AM, Thomas Jarosch wrote:
> Detected by "cppcheck"

Sorry it took me so long to apply this

https://github.com/autotest/autotest/commit/a7b25526a018a88d49b05515cca666f5d0396dc8

Thanks!

> Signed-off-by: Thomas Jarosch<[email protected]>
> ---
>   client/profilers/powertop/src/powertop.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/client/profilers/powertop/src/powertop.c 
> b/client/profilers/powertop/src/powertop.c
> index dfe02d4..20d10ff 100644
> --- a/client/profilers/powertop/src/powertop.c
> +++ b/client/profilers/powertop/src/powertop.c
> @@ -996,7 +996,7 @@ int main(int argc, char **argv)
>                       push_line_pid(line2, cnt, pid);
>               }
>               if (file)
> -                     pclose(file);
> +                     fclose(file);
>
>               if (strstr(line, "total events")) {
>                       int d;

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to