aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-08-20 09:16:08 +0000
committerGuy Harris <guy@alum.mit.edu>2001-08-20 09:16:08 +0000
commit1839c44f3f0d41e5b6312e85de9a8f99f1b48fab (patch)
tree57c71c296251113a624b7e5bf5e31b5b2a9a5125
parentb524041d3f4bf9b30b0a2131a2f70f4a228ae04f (diff)
Free the exception ID string if we've allocated one.
svn path=/trunk/; revision=3856
-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