diff options
author | deniel <deniel@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-04-27 20:57:58 +0000 |
---|---|---|
committer | deniel <deniel@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-04-27 20:57:58 +0000 |
commit | 4a413420a12576ebf287589b0a80213aaf8b88cd (patch) | |
tree | 00c602dc312171ce7950b4adea022ab46ec65885 /packet-rsync.c | |
parent | 16ae02b302aac0ed293cc6d6f401fd6f4d71258c (diff) |
Replace some unchecked malloc calls by g_malloc.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7584 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-rsync.c')
-rw-r--r-- | packet-rsync.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-rsync.c b/packet-rsync.c index 69bd4f07da..9c3ae1e315 100644 --- a/packet-rsync.c +++ b/packet-rsync.c @@ -3,7 +3,7 @@ * [ very rough, but mininally functional ] * Copyright 2003, Brad Hards <bradh@frogmouth.net> * - * $Id: packet-rsync.c,v 1.3 2003/03/01 14:12:38 deniel Exp $ + * $Id: packet-rsync.c,v 1.4 2003/04/27 20:57:58 deniel Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -117,7 +117,7 @@ dissect_rsync_encap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, conversation_data = conversation_get_proto_data(conversation, proto_rsync); if (conversation_data == NULL) { - conversation_data = malloc(sizeof(struct rsync_conversation_data)); + conversation_data = g_malloc(sizeof(struct rsync_conversation_data)); conversation_data->state = RSYNC_INIT; conversation_add_proto_data(conversation, proto_rsync, conversation_data); } @@ -131,7 +131,7 @@ dissect_rsync_encap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, frame_data = p_get_proto_data(pinfo->fd, proto_rsync); if (!frame_data) { /* then we haven't seen this frame before */ - frame_data = malloc(sizeof(struct rsync_frame_data)); + frame_data = g_malloc(sizeof(struct rsync_frame_data)); frame_data->state = conversation_data->state; p_add_proto_data(pinfo->fd, proto_rsync, frame_data); } |