From e6ff789f6e7525df678a91eea0dd822cc09158de Mon Sep 17 00:00:00 2001 From: pfelt Date: Fri, 10 Jul 2009 23:03:26 +0000 Subject: [PATCH] -- fix: zero out slice allocated memory --- src/libs/memmgr/pools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/memmgr/pools.c b/src/libs/memmgr/pools.c index ab635f5..cb47386 100644 --- a/src/libs/memmgr/pools.c +++ b/src/libs/memmgr/pools.c @@ -38,7 +38,7 @@ MemPrivatePoolGetEntryDirect(void *PoolHandle, const char *SourceFile, unsigned { struct MemPoolPrivateRef *ref = (struct MemPoolPrivateRef *)PoolHandle; - return g_slice_alloc(ref->size); + return g_slice_alloc0(ref->size); } EXPORT void