diff options
Diffstat (limited to 'results/classifier/deepseek-2-tmp/output/socket/1504513')
| -rw-r--r-- | results/classifier/deepseek-2-tmp/output/socket/1504513 | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/results/classifier/deepseek-2-tmp/output/socket/1504513 b/results/classifier/deepseek-2-tmp/output/socket/1504513 deleted file mode 100644 index cb0ec2072..000000000 --- a/results/classifier/deepseek-2-tmp/output/socket/1504513 +++ /dev/null @@ -1,26 +0,0 @@ - -Socket leak on each call to qemu_socket() - -On any host platform where SOCK_CLOEXEC is defined (Linux at least), a socket is leaked on each call to qemu_socket() AND the socket returned hasn't been created with the desired SOCK_CLOEXEC attribute. The qemu_socket routine is: - -Line 272 of util/osdep.c: -/* - * Opens a socket with FD_CLOEXEC set - */ -int qemu_socket(int domain, int type, int protocol) -{ - int ret; - -#ifdef SOCK_CLOEXEC - ret = socket(domain, type | SOCK_CLOEXEC, protocol); - if (ret != -1 || errno != EINVAL) { - return ret; - } -#endif - ret = socket(domain, type, protocol); - if (ret >= 0) { - qemu_set_cloexec(ret); - } - - return ret; -} \ No newline at end of file |