diff options
author | 2011-05-09 19:49:51 +0000 | |
---|---|---|
committer | 2011-05-09 19:49:51 +0000 | |
commit | 80682283f92062fec74a1add2fe4bd10087876cb (patch) | |
tree | 5fed145d04558ef224b573599bf99cabe6f4da7d /lib/libc/stdio/vfwprintf.c | |
parent | Outsmart gcc4 on mips* by moving the declaration of _dl_debug_state (diff) | |
download | wireguard-openbsd-80682283f92062fec74a1add2fe4bd10087876cb.tar.xz wireguard-openbsd-80682283f92062fec74a1add2fe4bd10087876cb.zip |
Always free the multibyte->wchar conversion buffer allocated in __mbsconv().
ok matthew dcoppa miod
Diffstat (limited to 'lib/libc/stdio/vfwprintf.c')
-rw-r--r-- | lib/libc/stdio/vfwprintf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/stdio/vfwprintf.c b/lib/libc/stdio/vfwprintf.c index f4b1f685bf8..b58985dd1ba 100644 --- a/lib/libc/stdio/vfwprintf.c +++ b/lib/libc/stdio/vfwprintf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfwprintf.c,v 1.3 2011/04/28 17:38:46 stsp Exp $ */ +/* $OpenBSD: vfwprintf.c,v 1.4 2011/05/09 19:49:51 stsp Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. @@ -1051,6 +1051,8 @@ overflow: ret = -1; finish: + if (convbuf) + free(convbuf); #ifdef FLOATING_POINT if (dtoaresult) __freedtoa(dtoaresult); |