aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mgcp
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-06-12 10:10:17 +0000
committerGuy Harris <guy@alum.mit.edu>2003-06-12 10:10:17 +0000
commit15d260c8baa8bcd254a12c51814e800d6076d5bd (patch)
tree557b630079f256e49c4c15098edf27bc773430c0 /plugins/mgcp
parentec5499613d54fcec1c5ab43134df2a404e1154d1 (diff)
Get rid of allocations of unused buffers.
svn path=/trunk/; revision=7861
Diffstat (limited to 'plugins/mgcp')
-rw-r--r--plugins/mgcp/packet-mgcp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/mgcp/packet-mgcp.c b/plugins/mgcp/packet-mgcp.c
index 1a56645d59..dd66837306 100644
--- a/plugins/mgcp/packet-mgcp.c
+++ b/plugins/mgcp/packet-mgcp.c
@@ -2,7 +2,7 @@
* Routines for mgcp packet disassembly
* RFC 2705
*
- * $Id: packet-mgcp.c,v 1.39 2003/04/30 02:35:28 gerald Exp $
+ * $Id: packet-mgcp.c,v 1.40 2003/06/12 10:10:17 guy Exp $
*
* Copyright (c) 2000 by Ed Warnicke <hagbard@physics.rutgers.edu>
*
@@ -1001,7 +1001,6 @@ static void dissect_mgcp_firstline(tvbuff_t *tvb, packet_info *pinfo,
tokenlen = tvb_current_offset - tvb_previous_offset;
}
if(tokennum == 0){
- code = g_malloc(tokenlen);
code = tvb_format_text(tvb,tvb_previous_offset,tokenlen);
strncpy(mi->code,code,4);
mi->code[4] = '\0';
@@ -1022,7 +1021,6 @@ static void dissect_mgcp_firstline(tvbuff_t *tvb, packet_info *pinfo,
}
}
if(tokennum == 1){
- transid = g_malloc(tokenlen);
transid = tvb_format_text(tvb,tvb_previous_offset,tokenlen);
/* XXX - what if this isn't a valid text string? */
mi->transid = atol(transid);