Free the exception ID string if we've allocated one.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 20 Aug 2001 09:16:08 +0000 (09:16 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 20 Aug 2001 09:16:08 +0000 (09:16 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3856 f5534014-38df-0310-8fa8-9805f1628bb7

packet-giop.c

index fd8a3a86e9da95bb0ee5ff5788ad7f3b1f2b761b..a0056717bda08574144f190b7a49367a2c091808 100644 (file)
@@ -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