Received: from eggs.gnu.org ([2001:4830:134:3::10]:42746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aViah-0003TX-Su for qemu-devel@nongnu.org; Tue, 16 Feb 2016 11:35:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aViac-00079f-Km for qemu-devel@nongnu.org; Tue, 16 Feb 2016 11:35:07 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aViac-00079G-Fb for qemu-devel@nongnu.org; Tue, 16 Feb 2016 11:35:02 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 26545C0C2351 for ; Tue, 16 Feb 2016 16:35:02 +0000 (UTC) Received: from donizetti.redhat.com (ovpn-112-51.ams2.redhat.com [10.36.112.51]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u1GGYlLe023440 for ; Tue, 16 Feb 2016 11:35:01 -0500 From: Paolo Bonzini Date: Tue, 16 Feb 2016 17:34:27 +0100 Message-Id: <1455640486-6101-10-git-send-email-pbonzini@redhat.com> In-Reply-To: <1455640486-6101-1-git-send-email-pbonzini@redhat.com> References: <1455640486-6101-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 09/28] mptsas: add missing va_end List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Reported by Coverity. Reviewed-by: Markus Armbruster Signed-off-by: Paolo Bonzini --- hw/scsi/mptconfig.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/scsi/mptconfig.c b/hw/scsi/mptconfig.c index d049825..7071854 100644 --- a/hw/scsi/mptconfig.c +++ b/hw/scsi/mptconfig.c @@ -123,6 +123,7 @@ static size_t vpack(uint8_t **p_data, const char *fmt, va_list ap1) va_copy(ap2, ap1); size = vfill(NULL, 0, fmt, ap2); *p_data = data = g_malloc(size); + va_end(ap2); } return vfill(data, size, fmt, ap1); } -- 2.5.0