From: Wayne Davison Date: Tue, 15 Jan 2019 18:40:18 +0000 (-0800) Subject: Avoid warning about leaked mem (didn't affect rsync's pool use). X-Git-Tag: v3.2.0pre1~213 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bc7402aa3a1148c02025b734a394198cf595a3a5;p=thirdparty%2Frsync.git Avoid warning about leaked mem (didn't affect rsync's pool use). --- diff --git a/lib/pool_alloc.c b/lib/pool_alloc.c index 5856d591..a70a3f1a 100644 --- a/lib/pool_alloc.c +++ b/lib/pool_alloc.c @@ -49,15 +49,15 @@ pool_create(size_t size, size_t quantum, void (*bomb)(const char *), int flags) { struct alloc_pool *pool; - if (!(pool = new0(struct alloc_pool))) - return NULL; - if ((MINALIGN & (MINALIGN - 1)) != 0) { if (bomb) (*bomb)("Compiler error: MINALIGN is not a power of 2\n"); return NULL; } + if (!(pool = new0(struct alloc_pool))) + return NULL; + if (!size) size = POOL_DEF_EXTENT; if (!quantum)