From: Florian Forster Date: Wed, 30 Sep 2009 06:11:10 +0000 (+0200) Subject: netapp plugin: Don't access a struct after freeing it. X-Git-Tag: collectd-4.9.0~73^2~6^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=afcfd1112ae057d39adfd63f43a138eba144899f;p=collectd.git netapp plugin: Don't access a struct after freeing it. Thanks Sven :) --- 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 */