Missing va_end in aarch64-dis.c

Message ID YYTsvWTCG6GS19Jo@squeak.grove.modra.org
State New
Headers show
Series
  • Missing va_end in aarch64-dis.c
Related show

Commit Message

Mike Frysinger via Binutils Nov. 5, 2021, 8:35 a.m.
* aarch64-dis.c (extract_fields): Invoke va_end.


-- 
Alan Modra
Australia Development Lab, IBM

Patch

diff --git a/opcodes/aarch64-dis.c b/opcodes/aarch64-dis.c
index 2549e6c3256..cbc9051e0a9 100644
--- a/opcodes/aarch64-dis.c
+++ b/opcodes/aarch64-dis.c
@@ -155,6 +155,7 @@  extract_fields (aarch64_insn code, aarch64_insn mask, ...)
       value <<= field->width;
       value |= extract_field (kind, code, mask);
     }
+  va_end (va);
   return value;
 }