diff options
Diffstat (limited to 'epan/dissectors/packet-h248_annex_c.c')
-rw-r--r-- | epan/dissectors/packet-h248_annex_c.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-h248_annex_c.c b/epan/dissectors/packet-h248_annex_c.c index addc0c1109..8afc8c3970 100644 --- a/epan/dissectors/packet-h248_annex_c.c +++ b/epan/dissectors/packet-h248_annex_c.c @@ -27,6 +27,8 @@ #include "config.h" +#include <epan/wmem/wmem.h> + #include "packet-h248.h" #define PNAME "H.248 Annex C" #define PSNAME "H248C" @@ -763,7 +765,7 @@ static void dissect_h248_annexc_BIR(proto_tree* tree, dissect_ber_octet_string(implicit_p ? *((gboolean*)implicit_p) : FALSE, &asn1_ctx, tree, tvb, 0, hfid, &new_tvb); if ( new_tvb && h248_info->term && ! h248_info->term->bir ) { - h248_info->term->bir = se_strdup(tvb_bytes_to_str(new_tvb,0,tvb_length(new_tvb))); + h248_info->term->bir = wmem_strdup(wmem_file_scope(), tvb_bytes_to_str(new_tvb,0,tvb_length(new_tvb))); } } @@ -781,7 +783,7 @@ static void dissect_h248_annexc_NSAP(proto_tree* tree, if (new_tvb) { dissect_nsap(new_tvb, 0,tvb_length(new_tvb), tree); if ( h248_info->term && ! h248_info->term->nsap) { - h248_info->term->nsap = se_strdup(tvb_bytes_to_str(new_tvb,0,tvb_length(new_tvb))); + h248_info->term->nsap = wmem_strdup(wmem_file_scope(), tvb_bytes_to_str(new_tvb,0,tvb_length(new_tvb))); } } } |