ucx/mempool.c

changeset 834
6a466635eace
parent 775
e5909dff0dbf
equal deleted inserted replaced
833:8aa2dc02d9b7 834:6a466635eace
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