Thomas Jarosch 5809fde040 perf header: Fix double fclose() on do_write(fd, xxx) failure
cppcheck reported:
[util/header.c:983]: (error) Used file that is not opened.

Thanks to Arnaldo Carvalho de Melo for pointing out that
fclose(NULL) is undefined behavior -> protect against it.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Link: http://lkml.kernel.org/r/1751778.SZQB4fNdIh@storm
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-01-30 10:40:44 -03:00
..
2012-09-17 13:12:02 -03:00
2012-12-09 08:46:07 -03:00
2013-01-30 10:40:05 -03:00
2012-12-08 15:25:06 +01:00
2013-01-25 12:49:28 -03:00
2012-10-02 18:36:24 -03:00
2012-08-03 10:37:21 -03:00
2012-05-17 12:32:54 -03:00
2012-12-11 17:22:39 -03:00