diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-08-15 12:04:15 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-08-15 12:04:15 +0000 |
commit | 3e2992875c9bef112ae02879147d964b866f94b2 (patch) | |
tree | 3520a81985994c92826a1ec160fd7bd5bceef8ab /epan/dissectors/packet-icep.c | |
parent | 28120db748eb635f0eeda3dc3d50d8000d397041 (diff) |
ememify g_malloc() calls
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15357 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-icep.c')
-rw-r--r-- | epan/dissectors/packet-icep.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-icep.c b/epan/dissectors/packet-icep.c index b0763035d6..87838fdd28 100644 --- a/epan/dissectors/packet-icep.c +++ b/epan/dissectors/packet-icep.c @@ -54,6 +54,7 @@ #include <epan/packet.h> #include <epan/dissectors/packet-tcp.h> +#include <epan/emem.h> #if 0 #define DBG(str, args...) do {\ @@ -326,12 +327,11 @@ static void dissect_ice_facet(proto_tree *tree, int hf_icep, if ( Size == 0 ) { if (tree) { - s = g_malloc( strlen("(empty)") + 1 ); + s = ep_alloc( strlen("(empty)") + 1 ); sprintf(s, "(empty)"); s[strlen("(empty)")] = '\0'; /* display the 0x00 Size byte when click on a empty ice_string */ proto_tree_add_string(tree, hf_icep, tvb, offset - 1, 1, s); - g_free(s); } return; } @@ -453,13 +453,12 @@ static void dissect_ice_context(proto_tree *tree, tvbuff_t *tvb, guint32 offset, } if (Size == 0) { - s = g_malloc( strlen("(empty)") + 1 ); + s = ep_alloc( strlen("(empty)") + 1 ); sprintf(s, "(empty)"); s[strlen("(empty)")] = '\0'; /* display the 0x00 Size byte when click on a empty context */ if (tree) proto_tree_add_string(tree, hf_icep_context, tvb, offset - 1, 1, s); - g_free(s); return; } |