[client] Each pthread_attr_init should be followed by pthread_attr_destroy