summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5d59159)
raw | patch | inline | side by side (parent: 5d59159)
author | Manuel Luis Sanmartín Rozada <manuel.luis@gmail.com> | |
Mon, 8 Jun 2015 19:36:05 +0000 (21:36 +0200) | ||
committer | Manuel Luis Sanmartín Rozada <manuel.luis@gmail.com> | |
Mon, 8 Jun 2015 19:36:05 +0000 (21:36 +0200) |
src/daemon/plugin.c | patch | blob | history |
diff --git a/src/daemon/plugin.c b/src/daemon/plugin.c
index ea9d2e932aa0ba8accd9f7b74972761982c80a5f..88a2af4fc2d6e9b1e3669f3a9fa26f6aa98b6beb 100644 (file)
--- a/src/daemon/plugin.c
+++ b/src/daemon/plugin.c
char *flush_name;
flush_name = plugin_flush_callback_name (name);
- if (flush_name == NULL)
- return (-1);
-
- plugin_unregister_read(flush_name);
- sfree(flush_name);
+ if (flush_name != NULL)
+ {
+ plugin_unregister_read(flush_name);
+ sfree(flush_name);
+ }
}
return plugin_unregister (list_flush, name);