This commit adds a missing va_end found by Coverity.
gdb/ChangeLog:
* remote.c (remote_target::remote_send_printf): Add
missing va_end found by Coverity.
+2018-10-10 Gary Benson <gbenson@redhat.com>
+
+ * remote.c (remote_target::remote_send_printf): Add
+ missing va_end found by Coverity.
+
2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
* btrace.c (ftrace_update_function): Add indirect jump heuristic.
va_start (ap, format);
rs->buf[0] = '\0';
- if (vsnprintf (rs->buf, max_size, format, ap) >= max_size)
+ int size = vsnprintf (rs->buf, max_size, format, ap);
+
+ va_end (ap);
+
+ if (size >= max_size)
internal_error (__FILE__, __LINE__, _("Too long remote packet."));
if (putpkt (rs->buf) < 0)