netapp plugin: free_host_config: Close the connection if applicable.
[collectd.git] / src / netapp.c
index bea86f6..aab30e5 100644 (file)
@@ -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 */