diff options
author | pbrook | 2008-06-09 15:57:23 +0200 |
---|---|---|
committer | pbrook | 2008-06-09 15:57:23 +0200 |
commit | b2a7081acb46b0cdcbec0346672d86fc77ebfeb5 (patch) | |
tree | 05b8e19f7ae249a8e0a567a6d8e44b0b68803000 | |
parent | Prevent guest reusing host memory allocations. (diff) | |
download | qemu-b2a7081acb46b0cdcbec0346672d86fc77ebfeb5.tar.gz qemu-b2a7081acb46b0cdcbec0346672d86fc77ebfeb5.tar.xz qemu-b2a7081acb46b0cdcbec0346672d86fc77ebfeb5.zip |
Use qemu_mallocz.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4711 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | exec.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -721,10 +721,9 @@ static void build_page_bitmap(PageDesc *p) int n, tb_start, tb_end; TranslationBlock *tb; - p->code_bitmap = qemu_malloc(TARGET_PAGE_SIZE / 8); + p->code_bitmap = qemu_mallocz(TARGET_PAGE_SIZE / 8); if (!p->code_bitmap) return; - memset(p->code_bitmap, 0, TARGET_PAGE_SIZE / 8); tb = p->first_tb; while (tb != NULL) { |