diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h index 07522684fb7d9994f7c76e202ac6f6616d03be89..fbcbecccf916a04db3037745af2fd3bad8cb9eda 100644 --- a/include/asterisk/lock.h +++ b/include/asterisk/lock.h @@ -443,7 +443,7 @@ static inline void ast_reentrancy_init(struct ast_lock_track **plt) struct ast_lock_track *lt = *plt; if (!lt) { - lt = *plt = (struct ast_lock_track *) ast_calloc(1, sizeof(*lt)); + lt = *plt = (struct ast_lock_track *) calloc(1, sizeof(*lt)); } for (i = 0; i < AST_MAX_REENTRANCY; i++) { @@ -470,7 +470,7 @@ static inline void delete_reentrancy_cs(struct ast_lock_track **plt) if (*plt) { lt = *plt; pthread_mutex_destroy(<->reentr_mutex); - ast_free(lt); + free(lt); *plt = NULL; } }