diff options
author | Michael Mann <mmann78@netscape.net> | 2012-08-14 16:29:38 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2012-08-14 16:29:38 +0000 |
commit | 41082851795afd9709b77d2d07a76a6d03c1833f (patch) | |
tree | 6dfbdebba8267cf7dfa6730f9965357c2211db56 /epan/dissectors/packet-lisp.c | |
parent | c7a6af44bbb1ebbabcd0919926e95f212c417372 (diff) |
fix subtle g_strdup_printf() memory leaks with ephemeral memory
svn path=/trunk/; revision=44491
Diffstat (limited to 'epan/dissectors/packet-lisp.c')
-rw-r--r-- | epan/dissectors/packet-lisp.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |