summaryrefslogtreecommitdiffstats
path: root/package/libnl/libnl-1.1-minor-leaks.patch
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2010-11-02 16:31:07 -0300
committerPeter Korsgaard <jacmet@sunsite.dk>2010-11-04 23:24:31 +0100
commit84c944d6c36ddbdf1f64a324aa465c5b17184980 (patch)
tree2876bac940da422b1994106f329813f99753f8f5 /package/libnl/libnl-1.1-minor-leaks.patch
parent2f152f6d6dd37b8cab87c482260a8465b86381d5 (diff)
downloadbuildroot-novena-84c944d6c36ddbdf1f64a324aa465c5b17184980.tar.gz
buildroot-novena-84c944d6c36ddbdf1f64a324aa465c5b17184980.zip
libnl: fix minor memleaks, install shared library properly
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/libnl/libnl-1.1-minor-leaks.patch')
-rw-r--r--package/libnl/libnl-1.1-minor-leaks.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/package/libnl/libnl-1.1-minor-leaks.patch b/package/libnl/libnl-1.1-minor-leaks.patch
new file mode 100644
index 000000000..855a6ab39
--- /dev/null
+++ b/package/libnl/libnl-1.1-minor-leaks.patch
@@ -0,0 +1,40 @@
+From: Patrick McHardy <kaber@trash.net>
+Date: Fri, 18 Jan 2008 16:55:49 +0000 (+0100)
+Subject: [LIBNL]: Fix minor memleaks on exit
+X-Git-Url: http://git.kernel.org/?p=libs%2Fnetlink%2Flibnl.git;a=commitdiff_plain;h=b64f15d6f947839236fa276d473d238f8c9b9d57;hp=e91bb2ffb090955d443e643a25b250bf3d33534a
+
+[LIBNL]: Fix minor memleaks on exit
+
+Make valgrind happy ...
+
+Signed-off-by: Patrick McHardy <kaber@trash.net>
+---
+
+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);