Re: [PATCH] x86: mkpiggy.c: fix resource leakage
From: H. Peter Anvin
Date: Mon Oct 07 2013 - 18:37:17 EST
On 10/07/2013 03:16 PM, Geyslan G. Bem wrote:
> Even though the resource is released when the application is closed or
> when returned from main function, modified to make it in accordance.
> Now FILE pointer is always verified.
>
> Signed-off-by: Geyslan G. Bem <geyslan@xxxxxxxxx>
Perhaps you could explain what problem is solved by this patch?
Note that for correctness we really should check the return value from
fclose().
-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/