aboutsummaryrefslogtreecommitdiffstats
path: root/pingu_route.c
diff options
context:
space:
mode:
Diffstat (limited to 'pingu_route.c')
-rw-r--r--pingu_route.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/pingu_route.c b/pingu_route.c
index efc8ad0..2099dbc 100644
--- a/pingu_route.c
+++ b/pingu_route.c
@@ -126,3 +126,12 @@ struct pingu_route *pingu_route_first_default(struct list_head *route_list)
}
return NULL;
}
+
+void pingu_route_cleanup(struct list_head *route_list)
+{
+ struct pingu_route *entry, *n;
+ list_for_each_entry_safe(entry, n, route_list, route_list_entry) {
+ list_del(&entry->route_list_entry);
+ free(entry);
+ }
+}