summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 76c004d)
raw | patch | inline | side by side (parent: 76c004d)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 4 Jul 2015 17:56:20 +0000 (19:56 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Fri, 10 Jul 2015 09:23:10 +0000 (11:23 +0200) |
src/plugin.c | patch | blob | history |
diff --git a/src/plugin.c b/src/plugin.c
index cb1005e8dffaa0537737183d338fc7278040fd3e..8dfb2c28bfdad9d866fede8eae6e645fb192e4d0 100644 (file)
--- a/src/plugin.c
+++ b/src/plugin.c
rf->rf_interval = plugin_get_interval ();
status = plugin_insert_read (rf);
- if (status != 0)
+ if (status != 0) {
+ sfree (rf->rf_name);
sfree (rf);
+ }
return (status);
} /* int plugin_register_read */
rf->rf_ctx = plugin_get_ctx ();
status = plugin_insert_read (rf);
- if (status != 0)
+ if (status != 0) {
+ sfree (rf->rf_name);
sfree (rf);
+ }
return (status);
} /* int plugin_register_complex_read */