summaryrefslogtreecommitdiff
path: root/pjlib/src/pj/os_rwmutex.c
diff options
context:
space:
mode:
Diffstat (limited to 'pjlib/src/pj/os_rwmutex.c')
-rw-r--r--pjlib/src/pj/os_rwmutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pjlib/src/pj/os_rwmutex.c b/pjlib/src/pj/os_rwmutex.c
index 05728da6..27bc5adb 100644
--- a/pjlib/src/pj/os_rwmutex.c
+++ b/pjlib/src/pj/os_rwmutex.c
@@ -56,7 +56,7 @@ PJ_DEF(pj_status_t) pj_rwmutex_create(pj_pool_t *pool, const char *name,
PJ_ASSERT_RETURN(pool && p_mutex, PJ_EINVAL);
*p_mutex = NULL;
- rwmutex = pj_pool_alloc(pool, sizeof(struct pj_rwmutex_t));
+ rwmutex = PJ_POOL_ALLOC_T(pool, pj_rwmutex_t);
status = pj_mutex_create_simple(pool, name, &rwmutex ->read_lock);
if (status != PJ_SUCCESS)