Skip to content
Snippets Groups Projects
Commit 5dc51100 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

tests: test-qga: close socket on failure to connect


Reported by Coverity as CID 1432543.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent ac9e723f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment