Exit via the correct cleanup path; we can't munmap until the mmap has
been performed. Detected with gcc -Wuninitialized. (The bug was introduced in rev 1.22. Hi Ragge! :)
This commit is contained in:
parent
2f0fdfa7f7
commit
b8fe389b4c
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: nlist_elf32.c,v 1.26 2004/12/28 00:08:08 thorpej Exp $ */
|
||||
/* $NetBSD: nlist_elf32.c,v 1.27 2005/06/01 05:24:54 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Christopher G. Demetriou
|
||||
@ -129,7 +129,7 @@ ELFNAMEEND(__fdnlist)(fd, list)
|
||||
ELFDEFNNAME(MACHDEP_ID_CASES)
|
||||
|
||||
default:
|
||||
BADUNMAP;
|
||||
BAD;
|
||||
}
|
||||
|
||||
if (S_ISCHR(st.st_mode)) {
|
||||
|
Loading…
Reference in New Issue
Block a user