diff options
author | Gerald Combs <gerald@wireshark.org> | 2005-03-16 23:25:11 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2005-03-16 23:25:11 +0000 |
commit | 8ff6c3d65692d5aad10c3ea513bb1073b1ff5a09 (patch) | |
tree | e37f98050b0acc25b48f3487d591b0447ada3c62 /epan/dissectors/packet-manolito.c | |
parent | 42dcc095af49b7d3992fa5298e139acceeb03fa7 (diff) |
Replace malloc()/free() with g_malloc()/g_free().
svn path=/trunk/; revision=13784
Diffstat (limited to 'epan/dissectors/packet-manolito.c')
-rw-r--r-- | epan/dissectors/packet-manolito.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-manolito.c b/epan/dissectors/packet-manolito.c index 4deeb4782c..302bbf4f84 100644 --- a/epan/dissectors/packet-manolito.c +++ b/epan/dissectors/packet-manolito.c @@ -191,7 +191,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 = malloc((guint)length + 1); + data = g_malloc((guint)length + 1); tvb_memcpy(tvb, data, ++offset, length); offset += length; @@ -226,7 +226,7 @@ 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); } - free(data); + g_free(data); } while(offset < tvb_reported_length(tvb)); |