Message ID | 1452873871-138914-17-git-send-email-pbonzini@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 89F289F716 for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 15 Jan 2016 16:10:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F258220453 for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 15 Jan 2016 16:10:21 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 667F12044C for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 15 Jan 2016 16:10:21 +0000 (UTC) Received: from localhost ([::1]:47833 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1aK6xA-0001Dx-Ko for patchwork-qemu-devel@patchwork.kernel.org; Fri, 15 Jan 2016 11:10:20 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1aK6s1-00087y-N2 for qemu-devel@nongnu.org; Fri, 15 Jan 2016 11:05:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1aK6ry-0003R1-Cq for qemu-devel@nongnu.org; Fri, 15 Jan 2016 11:05:01 -0500 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:35917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1aK6ry-0003Q6-6v for qemu-devel@nongnu.org; Fri, 15 Jan 2016 11:04:58 -0500 Received: by mail-wm0-x234.google.com with SMTP id l65so26080739wmf.1 for <qemu-devel@nongnu.org>; Fri, 15 Jan 2016 08:04:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=DIeLCvIL2hxKT8OXtDD4+mfefN2lCUOqc0ISMW9rOXE=; b=aYDL8oVi7f9vAujuusc9TgksmgWQEsqgpPF7t6YKGMGMhqWbJqPnk0vxw8PCkHlvt0 kyea2FOKyFPh+HZ75DBLr67I34virhHtk0cwiX7bVs1CV1hx8aUnCAs9ePE7U/ts61rq j/B4OA3aUQwFYwNIgYt3t/3fiF+vQ0niFxfQhD+J/49Ncp82FrR6dSWbaoGM33NsACQ2 pteYqOB0QRmM5MILJw8w2Xa02AAkO+dGTHe6wFBvhQQdzOLAtXAs3BLfa8NgrV+j8oo+ ixXNRJMDHPFxFSdUlj1SSfCks1lGMeBbz1HvwicUlxksFynuct5xMOi5eaHXP6QY4di9 9Y+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=DIeLCvIL2hxKT8OXtDD4+mfefN2lCUOqc0ISMW9rOXE=; b=QT4CQynWoUXktMnccgbO5z8QjjW/hxXx6OLg3r1Sc7854gmgTK+OAv2BIZQzX8PXZL 1+XH29yzL5refM3DPXxlhXgwBTYWOC8URnm/F1KAoCixYQAso+xvY3T8DC/s3+GLwl7X L+kNC1pp9JTE+3cxr/LKQh5PzLPitgzctGech9uKWwvGa4aSkTVu1kMaZ+g42Ec/Upg+ Cy0cq2HoTaJF8TJi03Sxxx6ZTVZpaG6NmHpSYCH7Q7n5+7rMYb+ILN+2t1zFyuWR1gk0 KnwdQqfEfYFy82CBNDg/5C7poGkPuEyKXxxDmiWkqVxl3zHsgpUnqMc1ibVE2ARpVEFt pORA== X-Gm-Message-State: ALoCoQlcvcDaLGiTnjyDz0pSp/IlGeGIUes0VM1oz3/BgoIHsVmVJUcDtuF3rzfZ9gS914fysVeWILVUfUFa+CrdVjW07wb95Q== X-Received: by 10.194.79.37 with SMTP id g5mr11565808wjx.89.1452873897699; Fri, 15 Jan 2016 08:04:57 -0800 (PST) Received: from 640k.lan (94-39-195-126.adsl-ull.clienti.tiscali.it. [94.39.195.126]) by smtp.gmail.com with ESMTPSA id c15sm3103036wmd.19.2016.01.15.08.04.56 for <qemu-devel@nongnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jan 2016 08:04:57 -0800 (PST) From: Paolo Bonzini <pbonzini@redhat.com> To: qemu-devel@nongnu.org Date: Fri, 15 Jan 2016 17:04:31 +0100 Message-Id: <1452873871-138914-17-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1452873871-138914-1-git-send-email-pbonzini@redhat.com> References: <1452873871-138914-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::234 Subject: [Qemu-devel] [PULL 15/15] qemu-char: do not leak QemuMutex when freeing a character device 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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/qemu-char.c b/qemu-char.c index 11caa56..e133f4f 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -3972,6 +3972,7 @@ static void qemu_chr_free_common(CharDriverState *chr) if (chr->logfd != -1) { close(chr->logfd); } + qemu_mutex_destroy(&chr->chr_write_lock); g_free(chr); }