aboutsummaryrefslogtreecommitdiffstats
path: root/packet-giop.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-08-20 09:16:08 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-08-20 09:16:08 +0000
commite6dc17f71784ceb45a024d2efa6efa9195a8bc3e (patch)
tree57c71c296251113a624b7e5bf5e31b5b2a9a5125 /packet-giop.c
parent0dd95550420fd72bd6a6c5b468cd64b05ef0ce90 (diff)
Free the exception ID string if we've allocated one.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3856 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-giop.c')
-rw-r--r--packet-giop.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/packet-giop.c b/packet-giop.c
index fd8a3a86e9..a0056717bd 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.46 2001/08/20 09:10:27 guy Exp $
+ * $Id: packet-giop.c,v 1.47 2001/08/20 09:16:08 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -3568,7 +3568,6 @@ dissect_giop_request_1_2 (tvbuff_t * tvb, packet_info * pinfo,
}
-
g_free(operation);
g_free(reserved);
}
@@ -3963,9 +3962,15 @@ gboolean dissect_giop (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) {
} /* switch message_type */
+ /*
+ * XXX - we should catch exceptions here, so that we can free
+ * this if an exception is thrown.
+ * We'd then have to forward the exception.
+ */
+ if (header.exception_id != NULL)
+ g_free(header.exception_id);
-
- return TRUE;
+ return TRUE;
}
void