mirror of
https://github.com/containers/podman.git
synced 2025-10-17 03:04:21 +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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
defer f.Close()
|
||||||
return writeToFile(s, f)
|
return writeToFile(s, f)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user