Message ID | 1441753806-14225-4-git-send-email-marcandre.lureau@redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 17F12140180 for <incoming@patchwork.ozlabs.org>; Wed, 9 Sep 2015 09:13:19 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=T7hx0fe6; dkim-atps=neutral Received: from localhost ([::1]:38420 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1ZZS4j-0008DS-1g for incoming@patchwork.ozlabs.org; Tue, 08 Sep 2015 19:13:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <marcandre.lureau@gmail.com>) id 1ZZS1m-0003aS-OG for qemu-devel@nongnu.org; Tue, 08 Sep 2015 19:10:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <marcandre.lureau@gmail.com>) id 1ZZS1m-0003Wz-0W for qemu-devel@nongnu.org; Tue, 08 Sep 2015 19:10:14 -0400 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:38911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <marcandre.lureau@gmail.com>) id 1ZZS1l-0003Wn-Qk for qemu-devel@nongnu.org; Tue, 08 Sep 2015 19:10:13 -0400 Received: by wiclk2 with SMTP id lk2so2009088wic.1 for <qemu-devel@nongnu.org>; Tue, 08 Sep 2015 16:10:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=6s+BT65q+wfPJFxf2VdZ7JkI32zV1H5rdJymtFdPPS0=; b=T7hx0fe6u5Sw3CswrcHX1zXF69CInjSJdwv6aXtcxM/mT4HCFeZVXei1YqGg7G1pwf Z8WuGcsmGB8gNpNMmFsm5zOZVrL88iDmZ5g/sA2qY5doV6cl0HQ6HonDbxBA3WrBs/OP wSm1hxxvFxc0BpGVuH1WlGW6g+bv7zAhSk3YAd0DQVFWZ49X+utEBtLUQaT64tvdhhG9 zHyGFtcCGXrK+MDVT7UIAnL+GTnGOUDZFK4TebfnQrjzp9t9Ea10K0uSoVI+NQ8TWKyM MYttTkgRPd1xzP34yTN0d4ryviGUXDxghzeSVPAcUumVuBJQI57AiuNN9MhANoAJIjs/ zaXQ== X-Received: by 10.180.20.166 with SMTP id o6mr47147503wie.48.1441753813084; Tue, 08 Sep 2015 16:10:13 -0700 (PDT) Received: from localhost (bne75-h02-31-39-163-232.dsl.sta.abo.bbox.fr. [31.39.163.232]) by smtp.gmail.com with ESMTPSA id p3sm743891wib.16.2015.09.08.16.10.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Sep 2015 16:10:12 -0700 (PDT) From: marcandre.lureau@redhat.com To: qemu-devel@nongnu.org Date: Wed, 9 Sep 2015 01:09:55 +0200 Message-Id: <1441753806-14225-4-git-send-email-marcandre.lureau@redhat.com> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1441753806-14225-1-git-send-email-marcandre.lureau@redhat.com> References: <1441753806-14225-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::236 Cc: mukawa@igel.co.jp, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com>, mst@redhat.com Subject: [Qemu-devel] [PATCH RFC 03/14] qemu-char: avoid potential double-free X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org |
diff --git a/qemu-char.c b/qemu-char.c index d956f8d..bc37628 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2713,6 +2713,7 @@ static int tcp_set_msgfds(CharDriverState *chr, int *fds, int num) /* clear old pending fd array */ if (s->write_msgfds) { g_free(s->write_msgfds); + s->write_msgfds = NULL; } if (num) {