detach threads
oops, found another memory leak lol
This commit is contained in:
parent
b10ab46360
commit
02554ea547
1
fbflut.c
1
fbflut.c
|
@ -35,6 +35,7 @@ void *handle_connection(void *socket_desc) {
|
||||||
#ifdef HAVE_LINUX_SECCOMP_H
|
#ifdef HAVE_LINUX_SECCOMP_H
|
||||||
syscall(SYS_seccomp, SECCOMP_SET_MODE_STRICT, 0);
|
syscall(SYS_seccomp, SECCOMP_SET_MODE_STRICT, 0);
|
||||||
#endif
|
#endif
|
||||||
|
pthread_detach(pthread_self());
|
||||||
|
|
||||||
int sock = *(int*)socket_desc;
|
int sock = *(int*)socket_desc;
|
||||||
int read_size;
|
int read_size;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user