mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-06 15:34:29 +00:00
record: fixed file handle not free
Signed-off-by: yanlonglong <yanlonglong@kylinos.cn> Acked-by: Frediano Ziglio <freddy77@gmail.com>
This commit is contained in:
parent
a904cd8643
commit
d8501d984d
@ -874,6 +874,7 @@ RedRecord *red_record_new(const char *filename)
|
||||
}
|
||||
|
||||
if (fwrite(header, sizeof(header)-1, 1, f) != 1) {
|
||||
fclose(f);
|
||||
spice_error("failed to write replay header");
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user