1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

lib:util: Add a gfree_memcache()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andreas Schneider 2023-10-26 14:35:44 +02:00 committed by Andreas Schneider
parent b3234c5574
commit cdcaac148f
2 changed files with 7 additions and 0 deletions

View File

@ -460,3 +460,8 @@ void memcache_flush(struct memcache *cache, enum memcache_number n)
node = next;
}
}
void gfree_memcache(void)
{
TALLOC_FREE(global_cache);
}

View File

@ -114,4 +114,6 @@ void *memcache_lookup_talloc(struct memcache *cache, enum memcache_number n,
void memcache_flush(struct memcache *cache, enum memcache_number n);
void gfree_memcache(void);
#endif