From afcfd1112ae057d39adfd63f43a138eba144899f Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 30 Sep 2009 08:11:10 +0200 Subject: [PATCH] netapp plugin: Don't access a struct after freeing it. Thanks Sven :) --- src/netapp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/netapp.c b/src/netapp.c index 9bfaaa66..ab01b745 100644 --- a/src/netapp.c +++ b/src/netapp.c @@ -384,11 +384,11 @@ static void free_host_config (host_config_t *hc) /* {{{ */ free_cfg_volume_usage (hc->cfg_volume_usage); free_cfg_system (hc->cfg_system); - sfree (hc); - if (hc->srv != NULL) na_server_close (hc->srv); + sfree (hc); + free_host_config (next); } /* }}} void free_host_config */ -- 2.30.2