Browse Source

Fix memory leak in delete_block().

pull/1/head
Aleksey Demakov 12 years ago
parent
commit
01ef0a392e
  1. 2
      ChangeLog
  2. 2
      jit/jit-block.c

2
ChangeLog

@ -1,5 +1,7 @@
2012-10-30 Aleksey Demakov <ademakov@gmail.com>
* jit/jit-block.c (delete_block): fix memory leak.
* jit/jit-memory-cache.c: rename jit-cache.c
2012-10-20 Aleksey Demakov <ademakov@gmail.com>

2
jit/jit-block.c

@ -292,7 +292,7 @@ delete_block(jit_block_t block)
block->insns = 0;
block->next = block->func->builder->deleted_blocks;
block->func->builder->deleted_blocks = block->next;
block->func->builder->deleted_blocks = block;
}
/* The block is empty if it contains nothing apart from an unconditional branch */

Loading…
Cancel
Save