]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/snmp_core.cc
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / snmp_core.cc
index b6721a48939c3ad2afd92f458068393150e7f318..2f38d07c0eb4c9e9834fe17f373774742cbc3ad5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -409,6 +409,7 @@ snmpDecodePacket(SnmpRequest * rq)
             snmpConstructReponse(rq);
         } else {
             debugs(49, DBG_IMPORTANT, "WARNING: SNMP agent query DENIED from : " << rq->from);
+            snmp_free_pdu(PDU);
         }
         xfree(Community);