[COMMITTED] _dl_exception_create_format: Add missing va_end

Message ID 20210511044506.157797-1-siddhesh@sourceware.org
State New
Headers show
Series
  • [COMMITTED] _dl_exception_create_format: Add missing va_end
Related show

Commit Message

Mark Brown via Libc-alpha May 11, 2021, 4:45 a.m.
Coverity discovered a missing va_end.
---
 elf/dl-exception.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.31.1

Patch

diff --git a/elf/dl-exception.c b/elf/dl-exception.c
index 8eaad418cb..d527c1f221 100644
--- a/elf/dl-exception.c
+++ b/elf/dl-exception.c
@@ -240,6 +240,7 @@  _dl_exception_create_format (struct dl_exception *exception, const char *objname
     if (len_objname != end - wptr)
       length_mismatch ();
     exception->objname = memcpy (wptr, objname, len_objname);
+    va_end (ap);
   }
 }
 rtld_hidden_def (_dl_exception_create_format)