maybe this will help?
```
diff --git a/src/modules/tm/t_funcs.h b/src/modules/tm/t_funcs.h
index 6830b13..dbbdc19 100644
--- a/src/modules/tm/t_funcs.h
+++ b/src/modules/tm/t_funcs.h
@@ -110,7 +110,7 @@ int send_pr_buffer( struct retr_buf *rb, void *buf, int len);
#define UNREF_NOSTATS(_T_cell) \
do{\
- if (atomic_dec_and_test(&(_T_cell)->ref_count)){ \
+ if (_T_cell && atomic_dec_and_test(&(_T_cell)->ref_count)){ \
unlink_timers((_T_cell)); \
free_cell((_T_cell)); \
}\
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3156#issuecomment-1173867017
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3156/1173867017(a)github.com>