From: Martin Mares Date: Wed, 13 Aug 2003 22:07:55 +0000 (+0000) Subject: This probably IS the memory leak we're looking for. Alien routes weren't X-Git-Tag: v1.3.2~616 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c197d44e1790ab1738cf9e438c2c91bd74e9b94e;p=thirdparty%2Fbird.git This probably IS the memory leak we're looking for. Alien routes weren't correctly disposed of. --- diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c index e6481844a..ff688b903 100644 --- a/sysdep/unix/krt.c +++ b/sysdep/unix/krt.c @@ -513,7 +513,10 @@ krt_got_route(struct krt_proto *p, rte *e) if (KRT_CF->learn) krt_learn_scan(p, e); else - krt_trace_in(p, e, "alien route, ignored"); + { + krt_trace_in(p, e, "alien route, ignored"); + rte_free(e); + } return; } #endif @@ -522,6 +525,7 @@ krt_got_route(struct krt_proto *p, rte *e) { /* Route to this destination was already seen. Strange, but it happens... */ krt_trace_in(p, e, "already seen"); + rte_free(e); return; }