X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_fbhash.c;h=cbd150610205255a8a20478a324175a7feebd35a;hb=49ac868d2346c77335272b8a643bca295db9feaa;hp=70b89089dce13e73e2deb9f25b8db5942ccdaa70;hpb=84dd85dc85cc2325f9c54100ca3fd7d4842db06f;p=collectd.git 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); }