aboutsummaryrefslogtreecommitdiffstats
path: root/packet-giop.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-07-26 16:59:28 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-07-26 16:59:28 +0000
commit51ddc1f3256fc41270fa62dc552bc3668b8705a1 (patch)
treee9b88dc7ad23bc38cdf88a753d1f5b513e954a99 /packet-giop.c
parent31868e912ddc5ecfbf5d18c461ad7bcd654487d2 (diff)
Fix from Frank Singleton to get rid of a premature "g_free()" of memory.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3789 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-giop.c')
-rw-r--r--packet-giop.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/packet-giop.c b/packet-giop.c
index dcc9a07291..e18704716d 100644
--- a/packet-giop.c
+++ b/packet-giop.c
@@ -9,7 +9,7 @@
* Frank Singleton <frank.singleton@ericsson.com>
* Trevor Shepherd <eustrsd@am1.ericsson.se>
*
- * $Id: packet-giop.c,v 1.43 2001/07/25 20:21:57 guy Exp $
+ * $Id: packet-giop.c,v 1.44 2001/07/26 16:59:28 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -4329,7 +4329,9 @@ void decode_IOR(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ptree, int *offse
for (i=0; i< seqlen_p; i++) { /* for every TaggedProfile */
decode_TaggedProfile(tvb, pinfo, tree, offset, boundary, stream_is_big_endian, repobuf);
}
-
+
+ g_free(repobuf);
+
}
static void decode_TaggedProfile(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset,
@@ -4515,7 +4517,6 @@ static void decode_IIOP_IOR_profile(tvbuff_t *tvb, packet_info *pinfo, proto_tre
}
}
- g_free(repo_id_buf);
g_free(objkey);
g_free(p_chars);
p_chars = NULL; /* reuse later */