ucx/mempool.c

changeset 248
dff45a2234ce
parent 242
a3597d704421
child 250
b7d1317b138e
     1.1 --- a/ucx/mempool.c	Tue Sep 19 14:16:26 2017 +0200
     1.2 +++ b/ucx/mempool.c	Tue Sep 19 14:35:08 2017 +0200
     1.3 @@ -115,7 +115,8 @@
     1.4          }
     1.5      }
     1.6  
     1.7 -    ucx_memchunk *mem = (ucx_memchunk*)malloc(sizeof(ucx_destructor) + n);
     1.8 +    void *p = malloc(sizeof(ucx_destructor) + n);
     1.9 +    ucx_memchunk *mem = (ucx_memchunk*)p;
    1.10      if (!mem) {
    1.11          return NULL;
    1.12      }

mercurial