]> granicus.if.org Git - neomutt/commitdiff
Release KyotoCabinet data with kcfree() (#384)
authorPietro Cerutti <gahr@gahr.ch>
Fri, 10 Feb 2017 03:29:36 +0000 (03:29 +0000)
committerRichard Russon <rich@flatcap.org>
Fri, 10 Feb 2017 03:29:36 +0000 (03:29 +0000)
Obtained from https://dev.mutt.org/hg/mutt/rev/09bb4a62ceb1

Closes #383

hcache-kc.c

index 65eb58dacfc963ae368cc02300732cb4217d5ae8..364d689196f729268def67406236cca794737355 100644 (file)
@@ -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