session MAINTENANCE remove dynamic synchronization structures
It is redundant because only the transport can
be shared which has its dedicated IO lock.
diff --git a/tests/test_io.c b/tests/test_io.c
index 4dd31a3..0848a0a 100644
--- a/tests/test_io.c
+++ b/tests/test_io.c
@@ -141,12 +141,9 @@
NC_MSG_TYPE type;
w->session->side = NC_SERVER;
- w->session->opts.server.rpc_lock = malloc(sizeof *w->session->opts.server.rpc_lock);
- pthread_mutex_init(w->session->opts.server.rpc_lock, NULL);
- w->session->opts.server.rpc_cond = malloc(sizeof *w->session->opts.server.rpc_cond);
- pthread_cond_init(w->session->opts.server.rpc_cond, NULL);
- w->session->opts.server.rpc_inuse = malloc(sizeof *w->session->opts.server.rpc_inuse);
- *w->session->opts.server.rpc_inuse = 0;
+ pthread_mutex_init(&w->session->opts.server.rpc_lock, NULL);
+ pthread_cond_init(&w->session->opts.server.rpc_cond, NULL);
+ w->session->opts.server.rpc_inuse = 0;
do {
type = nc_send_rpc(w->session, w->rpc, 1000, &msgid);