Hi, there is a memory leak in the destructor MibLeaf.
To fix the issue needs to be apply follow patch:
From cea87a7d2d686c49a27aecdd0b290401738993a1 Mon Sep 17 00:00:00 2001
From: Zinovkin <zmikel@mail.ru>
Date: Thu, 7 Sep 2023 15:57:35 +0300
Subject: del mem leak
diff --git a/agent++-4.6.1/src/mib.cpp b/agent++-4.6.1/src/mib.cpp
index 895a5ff..8403f91 100644
--- a/agent++-4.6.1/src/mib.cpp
+++ b/agent++-4.6.1/src/mib.cpp
@@ -108,6 +108,7 @@ MibLeaf::MibLeaf(const MibLeaf& other): MibEntry(other.oid, other.access)
MibLeaf::~MibLeaf()
{
free_value();
+ if (undo) delete undo;
}
void MibLeaf::init(SnmpSyntax* s, int mode)