summaryrefslogtreecommitdiff
path: root/exec/elfcore.c
diff options
context:
space:
mode:
Diffstat (limited to 'exec/elfcore.c')
-rw-r--r--exec/elfcore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec/elfcore.c b/exec/elfcore.c
index 4388a135..523973d8 100644
--- a/exec/elfcore.c
+++ b/exec/elfcore.c
@@ -94,7 +94,7 @@
goto lose;
err = bfd_set_section_contents (bfd, sec, data, 0,
bfd_section_size (bfd, sec));
- vm_deallocate (mach_task_self (), data, bfd_section_size (bfd, sec));
+ munmap ((caddr_t) data, bfd_section_size (bfd, sec));
if (err)
goto bfdlose;
}