aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/sigtran/xua_msg.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmocom/sigtran/xua_msg.h')
-rw-r--r--include/osmocom/sigtran/xua_msg.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/osmocom/sigtran/xua_msg.h b/include/osmocom/sigtran/xua_msg.h
index 9c3c49c..99d3e78 100644
--- a/include/osmocom/sigtran/xua_msg.h
+++ b/include/osmocom/sigtran/xua_msg.h
@@ -73,7 +73,11 @@ void osmo_xua_msg_tall_ctx_init(void *ctx);
#define xua_msg_alloc() _xua_msg_alloc(__FILE__, __LINE__)
struct xua_msg *_xua_msg_alloc(const char *file, int line);
-void xua_msg_free(struct xua_msg *msg);
+#define xua_msg_free(msg) do { \
+ printf("xua_msg_free(): %s:%d: %p\n", __FILE__, __LINE__, msg); \
+ _xua_msg_free(msg); \
+}while(0)
+void _xua_msg_free(struct xua_msg *msg);
int xua_msg_add_data(struct xua_msg *msg, uint16_t tag, uint16_t len, uint8_t *dat);