summaryrefslogtreecommitdiffhomepage
path: root/ir/obstack
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-04-25 16:46:10 +0200
committerMatthias Braun <matze@braunis.de>2014-04-25 16:59:08 +0200
commit9e4ad1fbc2938724444652953a99cc631eaf2596 (patch)
treee315727980b95b44ef051ffada4d71d4fb97592c /ir/obstack
parenta727f98b88aaa7588241c9e1e910ed780f4d030d (diff)
fix a bunch of memory leaks reported by coverity
Diffstat (limited to 'ir/obstack')
-rw-r--r--ir/obstack/obstack_printf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ir/obstack/obstack_printf.c b/ir/obstack/obstack_printf.c
index da0c6eb..f8ddbdf 100644
--- a/ir/obstack/obstack_printf.c
+++ b/ir/obstack/obstack_printf.c
@@ -26,6 +26,7 @@ int obstack_vprintf(struct obstack *obst, const char *fmt, va_list ap) FIRM_NOTH
va_list tap;
va_copy(tap, ap);
len = vsnprintf(buffer, size, fmt, tap);
+ va_end(tap);
/* snprintf should return -1 only in the error case, but older glibcs
* and probably other systems are buggy in this respect and return -1 if