mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user