summaryrefslogtreecommitdiff
path: root/pjnath/src/pjnath-test/ice_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'pjnath/src/pjnath-test/ice_test.c')
-rw-r--r--pjnath/src/pjnath-test/ice_test.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/pjnath/src/pjnath-test/ice_test.c b/pjnath/src/pjnath-test/ice_test.c
index 80f8c480..98456aaa 100644
--- a/pjnath/src/pjnath-test/ice_test.c
+++ b/pjnath/src/pjnath-test/ice_test.c
@@ -402,11 +402,7 @@ static void destroy_sess(struct test_sess *sess, unsigned wait_msec)
sess->server2 = NULL;
}
- if (sess->pool) {
- pj_pool_t *pool = sess->pool;
- sess->pool = NULL;
- pj_pool_release(pool);
- }
+ pj_pool_safe_release(&sess->pool);
}
static void ice_on_rx_data(pj_ice_strans *ice_st,