fix a memory leak
authorMazet Laurent <laurent.mazet@thalesgroup.com>
Wed, 11 Jun 2025 15:29:06 +0000 (17:29 +0200)
committerMazet Laurent <laurent.mazet@thalesgroup.com>
Wed, 11 Jun 2025 15:29:06 +0000 (17:29 +0200)
mapec_test.c

index 293d535c75383819e7e132ec138e9673af5ee488..b068b1d238bfe797f65c8ec1ed6c39ec36765a2a 100644 (file)
@@ -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");