commit f3982f36f684c2ef1174bf3d951c15d3e5a91f9a Author: Patrick McHardy <kaber@xxxxxxxxx> Date: Fri Jan 18 16:16:07 2008 +0100 [LIBNL]: Fix minor memleaks on exit Make valgrind happy ... Signed-off-by: Patrick McHardy <kaber@xxxxxxxxx> diff --git a/lib/route/route_utils.c b/lib/route/route_utils.c index a12d169..1386cda 100644 --- a/lib/route/route_utils.c +++ b/lib/route/route_utils.c @@ -63,6 +63,11 @@ static void __init init_routing_table_names(void) add_routing_table_name(RT_TABLE_LOCAL, "local"); }; +static void __exit release_routing_table_names(void) +{ + __trans_list_clear(&table_names); +} + int rtnl_route_read_table_names(const char *path) { __trans_list_clear(&table_names); @@ -104,6 +109,11 @@ static void __init init_proto_names(void) add_proto_name(RTPROT_STATIC, "static"); }; +static void __exit release_proto_names(void) +{ + __trans_list_clear(&proto_names); +} + int rtnl_route_read_protocol_names(const char *path) { __trans_list_clear(&proto_names); - To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html