]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
This probably IS the memory leak we're looking for. Alien routes weren't
authorMartin Mares <mj@ucw.cz>
Wed, 13 Aug 2003 22:07:55 +0000 (22:07 +0000)
committerMartin Mares <mj@ucw.cz>
Wed, 13 Aug 2003 22:07:55 +0000 (22:07 +0000)
correctly disposed of.

sysdep/unix/krt.c

index e6481844a426a312869e27e61c55a930404b9915..ff688b903ba2bb6ab0a13d4acf4282566f7d5a51 100644 (file)
@@ -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;
     }