projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac9e723
)
tests: test-qga: close socket on failure to connect
author
Paolo Bonzini
<pbonzini@redhat.com>
Mon, 5 Sep 2022 11:01:27 +0000
(13:01 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Sun, 18 Sep 2022 07:17:41 +0000
(09:17 +0200)
Reported by Coverity as CID
1432543
.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/unit/test-qga.c
patch
|
blob
|
history
diff --git
a/tests/unit/test-qga.c
b/tests/unit/test-qga.c
index a05a4628ed5f2a1cf7ad77299b947592f3878bcd..d27ff94d139448a1c349f3a695f863cddf1caf6f 100644
(file)
--- a/
tests/unit/test-qga.c
+++ b/
tests/unit/test-qga.c
@@
-32,6
+32,7
@@
static int connect_qga(char *path)
g_usleep(G_USEC_PER_SEC);
}
if (i++ == 10) {
+ close(s);
return -1;
}
} while (ret == -1);