X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Futils_fbhash.c;h=7513729c679b29f4278395654a5f465c07e7ffe9;hb=67a330cb7ba890a03142a089ed1aebea8842072f;hp=97f21a1f78317ebc4cc5d8ccce7f61dcd322b0ae;hpb=80a66a53838bcf17e513f673f18a61fd1ac647c0;p=collectd.git diff --git a/src/utils_fbhash.c b/src/utils_fbhash.c index 97f21a1f..7513729c 100644 --- a/src/utils_fbhash.c +++ b/src/utils_fbhash.c @@ -36,7 +36,7 @@ struct fbhash_s c_avl_tree_t *tree; }; -/* +/* * Private functions */ static void fbh_free_tree (c_avl_tree_t *tree) /* {{{ */ @@ -193,7 +193,7 @@ static int fbh_check_file (fbhash_t *h) /* {{{ */ return (status); } /* }}} int fbh_check_file */ -/* +/* * Public functions */ fbhash_t *fbh_create (const char *file) /* {{{ */ @@ -223,6 +223,7 @@ fbhash_t *fbh_create (const char *file) /* {{{ */ if (status != 0) { fbh_destroy (h); + free (h); return (NULL); }