X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Futils_fbhash.c;h=38b713e7f0d7a8536fb76101bd16bcea5a42bce1;hb=9685c388b5954800d0e4ceb741844c2682464759;hp=d20b7e39bdd453de1bdec5c4564ed30e994647a6;hpb=9d15d1058b93acb7be041934acfe76548539041a;p=collectd.git diff --git a/src/utils_fbhash.c b/src/utils_fbhash.c index d20b7e39..38b713e7 100644 --- a/src/utils_fbhash.c +++ b/src/utils_fbhash.c @@ -234,6 +234,7 @@ void fbh_destroy (fbhash_t *h) /* {{{ */ if (h == NULL) return; + pthread_mutex_destroy (&h->lock); free (h->filename); fbh_free_tree (h->tree); } /* }}} void fbh_destroy */ @@ -252,7 +253,7 @@ char *fbh_get (fbhash_t *h, const char *key) /* {{{ */ pthread_mutex_lock (&h->lock); - /* TODO: Checking this everytime may be a bit much..? */ + /* TODO: Checking this every time may be a bit much..? */ fbh_check_file (h); status = c_avl_get (h->tree, key, (void *) &value);