aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-afs.c
diff options
context:
space:
mode:
authorstandel <standel@f5534014-38df-0310-8fa8-9805f1628bb7>2007-03-30 08:22:08 +0000
committerstandel <standel@f5534014-38df-0310-8fa8-9805f1628bb7>2007-03-30 08:22:08 +0000
commiteee87ac04d3813312e6b0a29f5d74f584d4cb81d (patch)
tree2a261d23056dad5886b59dab0dbc55ab7bb2f372 /epan/dissectors/packet-afs.c
parentec0e8109051d0090ec10232d93ae3ebe1280ccb9 (diff)
remove some g_malloc/g_free
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21280 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-afs.c')
-rw-r--r--epan/dissectors/packet-afs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-afs.c b/epan/dissectors/packet-afs.c
index f61531b54e..bf7584107a 100644
--- a/epan/dissectors/packet-afs.c
+++ b/epan/dissectors/packet-afs.c
@@ -420,12 +420,11 @@ static gint ett_afs_vldb_flags = -1;
offset += 4; \
p = tvb_get_ptr(tvb,offset,i); \
len = ((i+4-1)/4)*4; \
- tmp = g_malloc(i+1); \
+ tmp = ep_malloc(i+1); \
memcpy(tmp, p, i); \
tmp[i] = '\0'; \
proto_tree_add_string(tree, field, tvb, offset-4, len+4, \
(void *)tmp); \
- g_free(tmp); \
offset += len; \
}