From: Florian Forster Date: Tue, 29 Sep 2009 14:50:22 +0000 (+0200) Subject: netapp plugin: free_host_config: Close the connection if applicable. X-Git-Tag: collectd-4.9.0~73^2~9 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=7b83066d9ff2da83ce186399aabf209e048124db netapp plugin: free_host_config: Close the connection if applicable. --- diff --git a/src/netapp.c b/src/netapp.c index bea86f65..aab30e58 100644 --- a/src/netapp.c +++ b/src/netapp.c @@ -386,6 +386,9 @@ static void free_host_config (host_config_t *hc) /* {{{ */ sfree (hc); + if (hc->srv != NULL) + na_server_close (hc->srv); + free_host_config (next); } /* }}} void free_host_config */