Code

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 bea86f654a537989bbfa4cfc5ca0ad96e3757694..aab30e58e636860e4385cc4aa536f2a506c6566a 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 */