mirror of
https://github.com/containers/podman.git
synced 2025-10-14 01:35:29 +08:00
libpod: fix file descriptor leak
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -68,6 +68,7 @@ func (e EventLogFile) writeString(s string) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer f.Close()
|
||||
return writeToFile(s, f)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user