diff options
author | Justus Winter <justus@g10code.com> | 2016-07-01 12:50:29 +0200 |
---|---|---|
committer | Justus Winter <justus@g10code.com> | 2016-07-01 12:50:29 +0200 |
commit | ff77b92aae9c8e20cbc7fa7c294adcc6a8c2f614 (patch) | |
tree | 603a48108c556de5c61cb02a767fb6accc4301a2 | |
parent | g10: Fix memory leak. (diff) | |
download | gnupg2-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.c | 4 |
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 |