aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-11-03 01:19:59 +0000
committerGuy Harris <guy@alum.mit.edu>2001-11-03 01:19:59 +0000
commit66c294003107489b472092a7738579f1ccf65f38 (patch)
treedba8b8f10172056c6fec20f91829cff4e86d202d
parent0c13da5c70517cf81f9d30c10f6ef7e7a45ccb78 (diff)
When freeing the "gpa_hfinfo" pointer array, free the array itself, as
well as the structure containing it. svn path=/trunk/; revision=4131
-rw-r--r--epan/proto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/proto.c b/epan/proto.c
index 298848ed45..b3906e9874 100644
--- a/epan/proto.c
+++ b/epan/proto.c
@@ -1,7 +1,7 @@
/* proto.c
* Routines for protocol tree
*
- * $Id: proto.c,v 1.39 2001/11/02 10:09:48 guy Exp $
+ * $Id: proto.c,v 1.40 2001/11/03 01:19:59 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -185,7 +185,7 @@ proto_init(const char *plugin_dir,void (register_all_protocols)(void),
if (gmc_item_labels)
g_mem_chunk_destroy(gmc_item_labels);
if (gpa_hfinfo)
- g_ptr_array_free(gpa_hfinfo, FALSE);
+ g_ptr_array_free(gpa_hfinfo, TRUE);
if (tree_is_expanded != NULL)
g_free(tree_is_expanded);
@@ -252,7 +252,7 @@ proto_cleanup(void)
if (gmc_item_labels)
g_mem_chunk_destroy(gmc_item_labels);
if (gpa_hfinfo)
- g_ptr_array_free(gpa_hfinfo, FALSE);
+ g_ptr_array_free(gpa_hfinfo, TRUE);
/* Cleanup the ftype subsystem */
ftypes_cleanup();