]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
SNMP: cleanup
authorVojtech Vilimek <vojtech.vilimek@nic.cz>
Wed, 14 Aug 2024 10:26:20 +0000 (12:26 +0200)
committerVojtech Vilimek <vojtech.vilimek@nic.cz>
Wed, 14 Aug 2024 10:26:20 +0000 (12:26 +0200)
proto/snmp/snmp.c
proto/snmp/snmp.h

index 0aa17dd337c73f1d8d6adce10d7edb7c000489d6..e8d30d7ed454b209d69688b1cde158a7b2080f0a 100644 (file)
@@ -396,9 +396,6 @@ snmp_cleanup(struct snmp_proto *p)
   rfree(p->lp);
   p->bgp_trie = NULL;
 
-  rfree(p->end_oids);
-  p->end_oids = NULL;
-
   p->state = SNMP_DOWN;
 }
 
@@ -553,7 +550,6 @@ snmp_start(struct proto *P)
   p->lp = lp_new(p->pool);
   p->mib_tree = mb_alloc(p->pool, sizeof(struct mib_tree));
   p->bgp_trie = f_new_trie(p->lp, 0);
-  p->end_oids = lp_new(p->pool);
 
   p->startup_timer = tm_new_init(p->pool, snmp_startup_timeout, p, 0, 0);
   p->ping_timer = tm_new_init(p->pool, snmp_ping_timeout, p, p->timeout, 0);
index 83f3b5bf1e181cfb31c7ad61eec858b148ba8be5..5c5a6429f3c7bc72f1ab5a012f4cc070437f4561 100644 (file)
@@ -98,7 +98,6 @@ struct snmp_proto {
   struct object_lock *lock;
   pool *pool;                    /* a shortcut to the procotol mem. pool */
   linpool *lp;                   /* linpool for bgp_trie nodes */
-  linpool *end_oids;
 
   enum snmp_proto_state state;