[quagga/f14] fixes #746886 - severe memory leak in quagga 0.99.{19, 20}

Jiri Skala jskala at fedoraproject.org
Tue Oct 18 08:04:30 UTC 2011


commit fca995d38bd142c7892a64379734e052512fb66d
Author: Jiri Skala <jskala at redhat.com>
Date:   Tue Oct 18 10:04:26 2011 +0200

    fixes #746886 - severe memory leak in quagga 0.99.{19,20}

 quagga-0.99.20-memleak.patch |   12 ++++++++++++
 quagga.spec                  |    7 ++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/quagga-0.99.20-memleak.patch b/quagga-0.99.20-memleak.patch
new file mode 100644
index 0000000..80d0ee7
--- /dev/null
+++ b/quagga-0.99.20-memleak.patch
@@ -0,0 +1,12 @@
+diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c
+index d43c104..3908e72 100644
+--- a/bgpd/bgp_attr.c
++++ b/bgpd/bgp_attr.c
+@@ -675,6 +675,7 @@  bgp_attr_unintern (struct attr **attr)
+     }
+
+   bgp_attr_unintern_sub (&tmp);
++  bgp_attr_extra_free (&tmp);
+ }
+
+ void
diff --git a/quagga.spec b/quagga.spec
index 5e42f5c..3dbe7fe 100644
--- a/quagga.spec
+++ b/quagga.spec
@@ -32,7 +32,7 @@
 Summary:    Routing daemon
 Name:		quagga
 Version:	0.99.20
-Release:    1%{?dist}
+Release:    2%{?dist}
 License:	GPLv2+
 Group:      System Environment/Daemons
 Source0:    http://www.quagga.net/download/%{name}-%{version}.tar.gz
@@ -44,6 +44,7 @@ Source1:    quagga-filter-perl-requires.sh
 Patch101:     quagga-0.99.15-perl_pth.patch
 Patch102:     quagga-0.99.16-posix.patch
 Patch103:     quagga-0.99.16-man.patch
+Patch104:     quagga-0.99.20-memleak.patch
 
 URL:		http://www.quagga.net
 %if %with_snmp
@@ -107,6 +108,7 @@ developing OSPF-API and quagga applications.
 %patch101 -p1 -b .perl_pth
 %patch102 -p1 -b .posix
 %patch103 -p1 -b .man
+%patch104 -p1 -b .memleak
 
 %build
 # FC5+ automatic -fstack-protector-all switch
@@ -376,6 +378,9 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %changelog
+* Tue Oct 18 2011 Jiri Skala <jskala at redhat.com> - 0.99.20-2
+- fixes #746886 - severe memory leak in quagga 0.99.{19,20}
+
 * Fri Sep 30 2011 Jiri Skala <jskala at redhat.com> - 0.99.20-1
 - updated to latest upstream version 0.99.20
 - fixes #741343 - CVE-2011-3325 corrected fix


More information about the scm-commits mailing list