Package pata_rb532_cf separately and update kernel config
[openwrt.git] / package / libnl / patches / 130-fix_minor_memleaks_on_exit.patch
1 From: Patrick McHardy <kaber@trash.net>
2 Date: Fri, 18 Jan 2008 16:55:49 +0000 (+0100)
3 Subject: [LIBNL]: Fix minor memleaks on exit
4 X-Git-Url: http://git.kernel.org/?p=libs%2Fnetlink%2Flibnl.git;a=commitdiff_plain;h=b64f15d6f947839236fa276d473d238f8c9b9d57;hp=e91bb2ffb090955d443e643a25b250bf3d33534a
5
6 [LIBNL]: Fix minor memleaks on exit
7
8 Make valgrind happy ...
9
10 Signed-off-by: Patrick McHardy <kaber@trash.net>
11 ---
12
13 diff --git a/lib/route/route_utils.c b/lib/route/route_utils.c
14 index a12d169..1386cda 100644
15 --- a/lib/route/route_utils.c
16 +++ b/lib/route/route_utils.c
17 @@ -63,6 +63,11 @@ static void __init init_routing_table_names(void)
18 add_routing_table_name(RT_TABLE_LOCAL, "local");
19 };
20
21 +static void __exit release_routing_table_names(void)
22 +{
23 + __trans_list_clear(&table_names);
24 +}
25 +
26 int rtnl_route_read_table_names(const char *path)
27 {
28 __trans_list_clear(&table_names);
29 @@ -104,6 +109,11 @@ static void __init init_proto_names(void)
30 add_proto_name(RTPROT_STATIC, "static");
31 };
32
33 +static void __exit release_proto_names(void)
34 +{
35 + __trans_list_clear(&proto_names);
36 +}
37 +
38 int rtnl_route_read_protocol_names(const char *path)
39 {
40 __trans_list_clear(&proto_names);
This page took 0.054154 seconds and 5 git commands to generate.