summaryrefslogtreecommitdiff
path: root/epan/crypt/airpdcap_debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'epan/crypt/airpdcap_debug.h')
-rw-r--r--epan/crypt/airpdcap_debug.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/epan/crypt/airpdcap_debug.h b/epan/crypt/airpdcap_debug.h
index 4facb6303f..82b686c94a 100644
--- a/epan/crypt/airpdcap_debug.h
+++ b/epan/crypt/airpdcap_debug.h
@@ -87,7 +87,12 @@ void print_debug_line(const CHAR *function, const CHAR *msg, const INT level);
#endif
#endif
-#define DEBUG_DUMP(x,y,z) g_warning("%s: %s", x, bytes_to_ep_str(y, (z)))
+#define DEBUG_DUMP(x,y,z) \
+ { \
+ char* tmp_str = (char*)bytes_to_str(NULL, y, (z)); \
+ g_warning("%s: %s", x, ) \
+ wmem_free(NULL, tmp_str); \
+ }
#else /* !defined _DEBUG */