mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
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>
This commit is contained in:
parent
44d4c69572
commit
ff77b92aae
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user