From 41082851795afd9709b77d2d07a76a6d03c1833f Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Tue, 14 Aug 2012 16:29:38 +0000 Subject: fix subtle g_strdup_printf() memory leaks with ephemeral memory svn path=/trunk/; revision=44491 --- epan/dissectors/packet-lisp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-lisp.c') diff --git a/epan/dissectors/packet-lisp.c b/epan/dissectors/packet-lisp.c index c9ba624a5b..3a747f70e5 100644 --- a/epan/dissectors/packet-lisp.c +++ b/epan/dissectors/packet-lisp.c @@ -266,7 +266,7 @@ dissect_lisp_mapping(tvbuff_t *tvb, packet_info *pinfo, proto_tree *lisp_tree, g tir = proto_tree_add_text(lisp_tree, tvb, 0, 12 + INET_ADDRLEN, "EID prefix: %s/%d, TTL: %s, %sAuthoritative, %s", ip_to_str((guint8 *)&prefix_v4), prefix_mask, - (ttl == 0xFFFFFFFF) ? "Unlimited" : g_strdup_printf("%d", ttl), + (ttl == 0xFFFFFFFF) ? "Unlimited" : ep_strdup_printf("%d", ttl), (flags&LISP_MAP_AUTH) ? "" : "Not ", lisp_actions[act]); offset += INET_ADDRLEN; /* Update the INFO column if there is only one record */ @@ -279,7 +279,7 @@ dissect_lisp_mapping(tvbuff_t *tvb, packet_info *pinfo, proto_tree *lisp_tree, g tir = proto_tree_add_text(lisp_tree, tvb, 0, 12 + INET6_ADDRLEN, "EID prefix: %s/%d, TTL: %s, %sAuthoritative, %s", ip6_to_str(&prefix_v6), prefix_mask, - (ttl == 0xFFFFFFFF) ? "Unlimited" : g_strdup_printf("%d", ttl), + (ttl == 0xFFFFFFFF) ? "Unlimited" : ep_strdup_printf("%d", ttl), (flags&LISP_MAP_AUTH) ? "" : "Not ", lisp_actions[act]); offset += INET6_ADDRLEN; /* Update the INFO column if there is only one record */ -- cgit v1.2.3