From 7b83066d9ff2da83ce186399aabf209e048124db Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 29 Sep 2009 16:50:22 +0200 Subject: [PATCH] netapp plugin: free_host_config: Close the connection if applicable. --- src/netapp.c | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- 2.30.2