netapp plugin: free_host_config: Close the connection if applicable.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 29 Sep 2009 14:50:22 +0000 (16:50 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 29 Sep 2009 14:50:22 +0000 (16:50 +0200)
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 */