test: fix FILE pointer leak
Fix leaking open FILE*. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
f1e7e52aa3
commit
be4f551d9f
|
@ -398,6 +398,8 @@ static void logging_format(void)
|
|||
assert(strcmp(logmsg, expected) == 0);
|
||||
}
|
||||
|
||||
if (f)
|
||||
fclose(f);
|
||||
|
||||
LogClose(EXIT_NO_ERROR);
|
||||
unlink(log_file_path);
|
||||
|
|
Loading…
Reference in New Issue