From 0e9625fd6df13c0263cd76225573634de9b44697 Mon Sep 17 00:00:00 2001 From: Mazet Laurent Date: Wed, 11 Jun 2025 17:29:06 +0200 Subject: [PATCH] fix a memory leak --- mapec_test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mapec_test.c b/mapec_test.c index 293d535..b068b1d 100644 --- a/mapec_test.c +++ b/mapec_test.c @@ -232,6 +232,8 @@ int main (int argc, char **argv) pthread_create (&client_thread, NULL, client, NULL); pthread_join (client_thread, NULL); + pthread_cancel (server_thread); + pthread_join (server_thread, NULL); printf ("*** END OF TEST SEQUENCE ***\n"); -- 2.30.2