]> git.proxmox.com Git - mirror_lxc.git/commit
c/r: use fclose instead of close
authorTycho Andersen <tycho.andersen@canonical.com>
Tue, 9 Jun 2015 01:59:51 +0000 (19:59 -0600)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 11 Jun 2015 04:04:43 +0000 (23:04 -0500)
commit3158ab5b9e16bb26267378bd54e113495631f8f2
treeb1eff8dcb410252d25f712b89f642f6aa0239ce1
parent2a5da243873ce7e2043c29fa0f6fc4a407bd2b20
c/r: use fclose instead of close

We're leaking the FILE* here while closing the underlying fd; let's just
close the file and thus close both.

Reported-by: Coverity
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/criu.c