]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixed a subtle memory leak in protocol restart routine
authorMaria Matejka <mq@ucw.cz>
Fri, 13 Dec 2024 18:10:55 +0000 (19:10 +0100)
committerMaria Matejka <mq@ucw.cz>
Fri, 13 Dec 2024 18:10:55 +0000 (19:10 +0100)
nest/rt-attr.c

index 329949c28cea71f8ecb24bae2b87769ce10aac53..a0f7d5718bbea0cde89e64d3aff452374d1416f5 100644 (file)
@@ -342,6 +342,9 @@ rt_find_source_global(u32 id)
 static inline void
 rt_done_sources(struct rte_owner *o)
 {
+  RTA_LOCK;
+  HASH_FREE(o->hash);
+  RTA_UNLOCK;
   ev_send(o->list, o->stop);
 }