summaryrefslogtreecommitdiff
path: root/flowtop.c
diff options
context:
space:
mode:
Diffstat (limited to 'flowtop.c')
-rw-r--r--flowtop.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/flowtop.c b/flowtop.c
index e7a1bfa..9d1991a 100644
--- a/flowtop.c
+++ b/flowtop.c
@@ -368,8 +368,10 @@ static void flow_list_destroy_entry(struct flow_list *fl,
flow_entry_xfree(n1);
} else {
+ struct flow_entry *next = fl->head->next;
+
flow_entry_xfree(fl->head);
- fl->head = NULL;
+ fl->head = next;
}
}
}