summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2016-07-01 12:50:29 +0200
committerJustus Winter <justus@g10code.com>2016-07-01 12:50:29 +0200
commitff77b92aae9c8e20cbc7fa7c294adcc6a8c2f614 (patch)
tree603a48108c556de5c61cb02a767fb6accc4301a2
parentg10: Fix memory leak. (diff)
downloadgnupg2-ff77b92aae9c8e20cbc7fa7c294adcc6a8c2f614.tar.xz
gnupg2-ff77b92aae9c8e20cbc7fa7c294adcc6a8c2f614.zip
g10: Fix build with disabled kbnode cache.
* g10/kbnode.c (release_unused_nodes): Fix build with disabled kbnode cache. Signed-off-by: Justus Winter <justus@g10code.com>
-rw-r--r--g10/kbnode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/kbnode.c b/g10/kbnode.c
index a1d1f3d77..e814fa802 100644
--- a/g10/kbnode.c
+++ b/g10/kbnode.c
@@ -34,18 +34,18 @@
static int cleanup_registered;
static KBNODE unused_nodes;
-#if USE_UNUSED_NODES
static void
release_unused_nodes (void)
{
+#if USE_UNUSED_NODES
while (unused_nodes)
{
kbnode_t next = unused_nodes->next;
xfree (unused_nodes);
unused_nodes = next;
}
-}
#endif /*USE_UNUSED_NODES*/
+}
static kbnode_t