src/mempool.c

changeset 947
2a47b4a5c216
parent 727
d92a59f5d261
child 962
cd418898af5c
equal deleted inserted replaced
946:b428424c0214 947:2a47b4a5c216
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