aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--epan/reassemble.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/reassemble.c b/epan/reassemble.c
index 949c028652..b8d6a8ac15 100644
--- a/epan/reassemble.c
+++ b/epan/reassemble.c
@@ -490,15 +490,15 @@ static void
fragment_unhash(GHashTable *fragment_table, fragment_key *key)
{
/*
- * Free up the copies of the addresses from the old key.
+ * Remove the entry from the fragment table.
*/
- g_free((gpointer)key->src.data);
- g_free((gpointer)key->dst.data);
+ g_hash_table_remove(fragment_table, key);
/*
- * Remove the entry from the fragment table.
+ * Free up the copies of the addresses from the old key.
*/
- g_hash_table_remove(fragment_table, key);
+ g_free((gpointer)key->src.data);
+ g_free((gpointer)key->dst.data);
/*
* Free the key itself.