projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b83066
)
netapp plugin: Add a shutdown callback.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Tue, 29 Sep 2009 14:51:45 +0000
(16:51 +0200)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Tue, 29 Sep 2009 14:51:45 +0000
(16:51 +0200)
src/netapp.c
patch
|
blob
|
history
diff --git
a/src/netapp.c
b/src/netapp.c
index
aab30e5
..
9bfaaa6
100644
(file)
--- a/
src/netapp.c
+++ b/
src/netapp.c
@@
-2402,10
+2402,19
@@
static int cna_read (void) { /* {{{ */
return 0;
} /* }}} int cna_read */
+static int cna_shutdown (void) /* {{{ */
+{
+ free_host_config (global_host_config);
+ global_host_config = NULL;
+
+ return (0);
+} /* }}} int cna_shutdown */
+
void module_register(void) {
plugin_register_complex_config("netapp", cna_config);
plugin_register_init("netapp", cna_init);
plugin_register_read("netapp", cna_read);
+ plugin_register_shutdown("netapp", cna_shutdown);
}
/* vim: set sw=2 ts=2 noet fdm=marker : */