diff mbox series

[COMMITTED] _dl_exception_create_format: Add missing va_end

Message ID 20210511044506.157797-1-siddhesh@sourceware.org
State Committed
Commit 81046e2812a3b41ad9a818eb42a1681bea232ce9
Headers show
Series [COMMITTED] _dl_exception_create_format: Add missing va_end | expand

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent

Commit Message

Siddhesh Poyarekar May 11, 2021, 4:45 a.m. UTC
Coverity discovered a missing va_end.
---
 elf/dl-exception.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

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)