X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Futils_fbhash.c;h=cbd150610205255a8a20478a324175a7feebd35a;hp=70b89089dce13e73e2deb9f25b8db5942ccdaa70;hb=9b7dee8838f56233cea2854a7ddbcad2790609ce;hpb=d3c85c866ae36ca8fefb044eeb121d42e14ede38 diff --git a/src/utils_fbhash.c b/src/utils_fbhash.c index 70b89089..cbd15061 100644 --- a/src/utils_fbhash.c +++ b/src/utils_fbhash.c @@ -41,7 +41,7 @@ struct fbhash_s c_avl_tree_t *tree; }; -/* +/* * Private functions */ static void fbh_free_tree (c_avl_tree_t *tree) /* {{{ */ @@ -198,7 +198,7 @@ static int fbh_check_file (fbhash_t *h) /* {{{ */ return (status); } /* }}} int fbh_check_file */ -/* +/* * Public functions */ fbhash_t *fbh_create (const char *file) /* {{{ */ @@ -228,6 +228,7 @@ fbhash_t *fbh_create (const char *file) /* {{{ */ if (status != 0) { fbh_destroy (h); + free (h); return (NULL); }