/[pcre]/code/trunk/sljit/sljitExecAllocator.c
ViewVC logotype

Diff of /code/trunk/sljit/sljitExecAllocator.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1215 by zherczeg, Thu Nov 1 15:21:27 2012 UTC revision 1216 by zherczeg, Fri Nov 9 13:05:29 2012 UTC
# Line 211  SLJIT_API_FUNC_ATTRIBUTE void* sljit_mal Line 211  SLJIT_API_FUNC_ATTRIBUTE void* sljit_mal
211    
212          chunk_size = (size + sizeof(struct block_header) + CHUNK_SIZE - 1) & CHUNK_MASK;          chunk_size = (size + sizeof(struct block_header) + CHUNK_SIZE - 1) & CHUNK_MASK;
213          header = (struct block_header*)alloc_chunk(chunk_size);          header = (struct block_header*)alloc_chunk(chunk_size);
214          PTR_FAIL_IF(!header);          if (!header) {
215                    allocator_release_lock();
216                    return NULL;
217            }
218    
219          chunk_size -= sizeof(struct block_header);          chunk_size -= sizeof(struct block_header);
220          total_size += chunk_size;          total_size += chunk_size;

Legend:
Removed from v.1215  
changed lines
  Added in v.1216

  ViewVC Help
Powered by ViewVC 1.1.5