From 2792d82160c26521c6548854a6b59653a59da621 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Fri, 10 Feb 2017 03:29:36 +0000 Subject: [PATCH] Release KyotoCabinet data with kcfree() (#384) Obtained from https://dev.mutt.org/hg/mutt/rev/09bb4a62ceb1 Closes #383 --- hcache-kc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hcache-kc.c b/hcache-kc.c index 65eb58dac..364d68919 100644 --- a/hcache-kc.c +++ b/hcache-kc.c @@ -72,7 +72,8 @@ hcache_kyotocabinet_fetch(void *ctx, const char *key, size_t keylen) static void hcache_kyotocabinet_free(void *vctx, void **data) { - FREE(data); /* __FREE_CHECKED__ */ + kcfree(*data); + *data = NULL; } static int -- 2.40.0