diff --git a/src/fdstream.c b/src/fdstream.c index 32d386dce6..fca0f412d6 100644 --- a/src/fdstream.c +++ b/src/fdstream.c @@ -668,6 +668,7 @@ error: VIR_FORCE_CLOSE(fds[0]); VIR_FORCE_CLOSE(fds[1]); VIR_FORCE_CLOSE(fd); + VIR_FORCE_CLOSE(errfd); if (oflags & O_CREAT) unlink(path); return -1;