diff options
-rw-r--r-- | common/snmp-engine.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/snmp-engine.c b/common/snmp-engine.c index 9f85321..bb5d2fa 100644 --- a/common/snmp-engine.c +++ b/common/snmp-engine.c @@ -62,6 +62,9 @@ struct request; typedef uint64_t mstime; +/* Forward declarations */ +static void request_release (struct request *req); + /* ------------------------------------------------------------------------------ * HOSTS */ @@ -295,6 +298,8 @@ host_cleanup (void) free (host->hostname); if (host->community) free (host->community); + if (host->prepared) + request_release (host->prepared); free (host); } |