projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
netapp plugin: Don't access a struct after freeing it.
[collectd.git]
/
src
/
netapp.c
diff --git
a/src/netapp.c
b/src/netapp.c
index
9bfaaa6
..
ab01b74
100644
(file)
--- 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 */