aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-acn.c
diff options
context:
space:
mode:
authorSebastien Tandel <sebastien@tandel.be>2007-03-30 08:22:08 +0000
committerSebastien Tandel <sebastien@tandel.be>2007-03-30 08:22:08 +0000
commit76a9512a739cbbaa6a9d8e2bd746bea9290a67ad (patch)
tree2a261d23056dad5886b59dab0dbc55ab7bb2f372 /epan/dissectors/packet-acn.c
parent814e1fde166bb41d978af7431a10e6c70fc6a532 (diff)
remove some g_malloc/g_free
svn path=/trunk/; revision=21280
Diffstat (limited to 'epan/dissectors/packet-acn.c')
-rw-r--r--epan/dissectors/packet-acn.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/epan/dissectors/packet-acn.c b/epan/dissectors/packet-acn.c
index f76dcdca13..37666fc39a 100644
--- a/epan/dissectors/packet-acn.c
+++ b/epan/dissectors/packet-acn.c
@@ -776,7 +776,7 @@ acn_add_dmp_data(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int of
this in the same capture frame. Could use se_alloc...
*/
#define BUFFER_SIZE 128
- buffer = g_malloc(BUFFER_SIZE);
+ buffer = ep_alloc(BUFFER_SIZE);
buffer[0] = 0;
A = ACN_DMP_ADT_EXTRACT_A(adt->flags);
@@ -950,8 +950,6 @@ acn_add_dmp_data(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int of
proto_item_set_text(ti, "Mixed size data items");
break;
} /* of switch (D) */
- /* free our memory! */
- g_free(buffer);
return offset;
}
@@ -976,7 +974,7 @@ acn_add_dmp_reason_codes(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree
this in the same capture frame. Could use se_alloc...
*/
#define BUFFER_SIZE 128
- buffer = g_malloc(BUFFER_SIZE);
+ buffer = ep_alloc(BUFFER_SIZE);
buffer[0] = 0;
@@ -1064,8 +1062,6 @@ acn_add_dmp_reason_codes(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree
} /* of (x=0;x<adt->count;x++) */
break;
} /* of switch (D) */
- /* free our memory! */
- g_free(buffer);
return offset;
}