diff options
Diffstat (limited to 'linux-user/elfload.c')
-rw-r--r-- | linux-user/elfload.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-user/elfload.c b/linux-user/elfload.c index eaa52afe79..dcdd756908 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -1860,6 +1860,7 @@ unsigned long init_guest_space(unsigned long host_start, if (valid == 1) { break; } else if (valid == -1) { + munmap((void *)real_start, host_size); return (unsigned long)-1; } /* valid == 0, so try again. */ |