aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-08-17 09:11:37 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-08-17 09:11:37 +0000
commit1df55c8071cd1ca52623030bcdcda567517c2b6d (patch)
treef71646e7caa691b7d199d7e5ef41f63ded662e35
parentd7cf8bfc9741cfda705bde983fa8eb4b40f85f87 (diff)
remove g_malloc from manolito
svn path=/trunk/; revision=15383
-rw-r--r--epan/dissectors/packet-manolito.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-manolito.c b/epan/dissectors/packet-manolito.c
index 3efb6583b3..96e6927237 100644
--- a/epan/dissectors/packet-manolito.c
+++ b/epan/dissectors/packet-manolito.c
@@ -36,6 +36,7 @@
#include <glib.h>
#include <epan/packet.h>
+#include <epan/emem.h>
/* Initialize the protocol and registered fields */
static int proto_manolito = -1;
@@ -191,7 +192,7 @@ dissect_manolito(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
* widen it past 8 bits, so there shouldn't
* be an overflow.
*/
- data = g_malloc((guint)length + 1);
+ data = ep_alloc((guint)length + 1);
tvb_memcpy(tvb, data, ++offset, length);
offset += length;
@@ -226,7 +227,6 @@ dissect_manolito(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_text(manolito_tree, tvb, start,
offset - start, "unknown type %d", dtype);
}
- g_free(data);
} while(offset < tvb_reported_length(tvb));