From d13e9cb09250c78ff2325abb9933202f9086ac84 Mon Sep 17 00:00:00 2001 From: bol-van Date: Fri, 5 Apr 2024 12:21:40 +0300 Subject: [PATCH] tpws: fix cleanup in resolver_init --- tpws/resolver.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/tpws/resolver.c b/tpws/resolver.c index f7f2049..4b1e0d3 100644 --- a/tpws/resolver.c +++ b/tpws/resolver.c @@ -181,12 +181,12 @@ bool resolver_init(int threads, int fd_signal_pipe) pthread_attr_t attr; - if (pthread_attr_init(&attr)) goto ex1; + if (pthread_attr_init(&attr)) goto ex2; // set minimum thread stack size if (pthread_attr_setstacksize(&attr,20480)) { pthread_attr_destroy(&attr); - goto ex1; + goto ex2; } for(t=0, resolver.threads=threads ; t