mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-07-27 01:22:10 +00:00
logsys: Don't leak fd on successful fdata dump
Signed-off-by: Jan Friesse <jfriesse@redhat.com> Reviewed-by: Steven Dake <sdake@redhat.com>
This commit is contained in:
parent
907d974352
commit
88515e3d20
@ -1642,7 +1642,8 @@ int logsys_log_rec_store (const char *filename)
|
||||
if (written_size != ((flt_data_size + 3) * sizeof (uint32_t))) {
|
||||
goto error_exit;
|
||||
}
|
||||
|
||||
|
||||
close (fd);
|
||||
return (0);
|
||||
|
||||
error_exit:
|
||||
|
Loading…
Reference in New Issue
Block a user