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:
parent
b3234c5574
commit
cdcaac148f
@ -460,3 +460,8 @@ void memcache_flush(struct memcache *cache, enum memcache_number n)
|
||||
node = next;
|
||||
}
|
||||
}
|
||||
|
||||
void gfree_memcache(void)
|
||||
{
|
||||
TALLOC_FREE(global_cache);
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user