(!1964) 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
d9a32056ca
commit
7f2a84ccf5
|
@ -398,6 +398,8 @@ static void logging_format(void)
|
||||||
assert(strcmp(logmsg, expected) == 0);
|
assert(strcmp(logmsg, expected) == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (f)
|
||||||
|
fclose(f);
|
||||||
|
|
||||||
LogClose(EXIT_NO_ERROR);
|
LogClose(EXIT_NO_ERROR);
|
||||||
unlink(log_file_path);
|
unlink(log_file_path);
|
||||||
|
|
Loading…
Reference in New Issue