detach threads

oops, found another memory leak lol
This commit is contained in:
xfnw 2022-07-20 15:02:34 -04:00
parent b10ab46360
commit 02554ea547
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ void *handle_connection(void *socket_desc) {
#ifdef HAVE_LINUX_SECCOMP_H
syscall(SYS_seccomp, SECCOMP_SET_MODE_STRICT, 0);
#endif
pthread_detach(pthread_self());
int sock = *(int*)socket_desc;
int read_size;