ucx/mempool.c

changeset 56
294d5515583a
parent 0
2483f517c562
equal deleted inserted replaced
55:1ce14068ef31 56:294d5515583a
111 111
112 static void cx_mempool_free( 112 static void cx_mempool_free(
113 void *p, 113 void *p,
114 void *ptr 114 void *ptr
115 ) { 115 ) {
116 if (!ptr) return;
116 struct cx_mempool_s *pool = p; 117 struct cx_mempool_s *pool = p;
117 118
118 struct cx_mempool_memory_s *mem = (struct cx_mempool_memory_s *) 119 struct cx_mempool_memory_s *mem = (struct cx_mempool_memory_s *)
119 ((char *) ptr - sizeof(cx_destructor_func)); 120 ((char *) ptr - sizeof(cx_destructor_func));
120 121

mercurial