diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2011-07-12 21:31:21 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2011-07-12 21:31:21 +0000 |
commit | 1648ed01f99a5fdb248b03571361865b9a0c4648 (patch) | |
tree | 93729c8fcada3dbd8ad11647c1f99f0466383c9b /lib/libc/nls | |
parent | 01e3a32028e8a71e20dcb7b47730dc387f326f43 (diff) |
Don't call munmap(2) if mmap(2) failed.
ok deraadt@, tedu@
Diffstat (limited to 'lib/libc/nls')
-rw-r--r-- | lib/libc/nls/catopen.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/nls/catopen.c b/lib/libc/nls/catopen.c index 425038a8a2d..4efedfa3da0 100644 --- a/lib/libc/nls/catopen.c +++ b/lib/libc/nls/catopen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: catopen.c,v 1.13 2008/06/26 05:42:05 ray Exp $ */ +/* $OpenBSD: catopen.c,v 1.14 2011/07/12 21:31:20 matthew Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. * All rights reserved. @@ -133,7 +133,6 @@ load_msgcat(const char *path) close (fd); if (data == MAP_FAILED) { - munmap(data, (size_t) st.st_size); return (nl_catd) -1; } |