Browse code

Merge 8d22d827d93f7fd5a9a29ee83d30c3b297c02241 into 394d78229ff26b44666efb021f84ec891b59b5ee

sergey-safarov authored on 23/10/2021 21:08:02 • GitHub committed on 23/10/2021 21:08:02
Showing 1 changed files
... ...
@@ -91,8 +91,11 @@ inline static void destroy_rlist(struct route_list* rt)
91 91
 		rt->entries=0;
92 92
 	}
93 93
 	if (rt->names.table){
94
-		clist_foreach_safe(rt->names.table, e, tmp, next){
95
-			pkg_free(e);
94
+		int i;
95
+		for(i = 0; i < RT_HASH_SIZE; i++) {
96
+			clist_foreach_safe(&rt->names.table[i], e, tmp, next) {
97
+				pkg_free(e);
98
+			}
96 99
 		}
97 100
 		pkg_free(rt->names.table);
98 101
 		rt->names.table=0;