aboutsummaryrefslogtreecommitdiffstats
path: root/packet-giop.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-07-26 16:59:28 +0000
committerGuy Harris <guy@alum.mit.edu>2001-07-26 16:59:28 +0000
commit120e9b393f77ee62e7a188d79d2d87c9ae75a5cc (patch)
treee9b88dc7ad23bc38cdf88a753d1f5b513e954a99 /packet-giop.c
parentae251f8426ca1100481de82d652ad0bf11c41e22 (diff)
Fix from Frank Singleton to get rid of a premature "g_free()" of memory.
svn path=/trunk/; revision=3789
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 */