https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62068

            Bug ID: 62068
           Summary: libjava/prims.cc:807: possible missing call to va_end
                    ?
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: libgcj
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com

[trunk/libjava/prims.cc:807]: (error) va_list 'args' was opened but not closed
by va_end().

  for (int i = 0; i < dimensions; ++i)
    {
      jint size = va_arg (args, jint);
      if (size < 0)
    throw new java::lang::NegativeArraySizeException;

Suggest add call to va_end just before throw.

Reply via email to