]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target-sparc/mmu_helper.c
memory: add ref/unref calls
[mirror_qemu.git] / target-sparc / mmu_helper.c
index 3983c96589fc5a69b5db8ed386e7ea99d24ce649..740cbe8f2c3b6382a19be3a9a23f3e92686a5574 100644 (file)
@@ -845,6 +845,7 @@ hwaddr cpu_get_phys_page_debug(CPUSPARCState *env, target_ulong addr)
         }
     }
     section = memory_region_find(get_system_memory(), phys_addr, 1);
+    memory_region_unref(section.mr);
     if (!int128_nz(section.size)) {
         return -1;
     }