projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
086b9ef
)
src/configfile.c: Fix a minor memory leak.
author
Florian Forster
<octo@huhu.verplant.org>
Thu, 9 Oct 2008 06:43:48 +0000
(08:43 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Thu, 9 Oct 2008 06:43:48 +0000
(08:43 +0200)
Thanks to Niraj Tolia for reporting this :)
src/configfile.c
patch
|
blob
|
history
diff --git
a/src/configfile.c
b/src/configfile.c
index
1df9111
..
8b526f2
100644
(file)
--- a/
src/configfile.c
+++ b/
src/configfile.c
@@
-888,7
+888,11
@@
int cf_read (char *filename)
dispatch_block (conf->children + i);
}
+ oconfig_free (conf);
+
+ /* Read the default types.db if no `TypesDB' option was given. */
if (cf_default_typesdb)
- read_types_list (PLUGINDIR"/types.db"); /* FIXME: Configure path */
+ read_types_list (PLUGINDIR"/types.db");
+
return (0);
} /* int cf_read */