From: Pietro Cerutti Date: Fri, 10 Feb 2017 03:29:36 +0000 (+0000) Subject: Release KyotoCabinet data with kcfree() (#384) X-Git-Tag: neomutt-20170225~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2792d82160c26521c6548854a6b59653a59da621;p=neomutt Release KyotoCabinet data with kcfree() (#384) Obtained from https://dev.mutt.org/hg/mutt/rev/09bb4a62ceb1 Closes #383 --- 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