From patchwork Wed Mar 25 18:47:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Patchwork-Id: 1261604 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=fzMtLCmX; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48nckl5MKSz9sQt for ; Thu, 26 Mar 2020 05:55:27 +1100 (AEDT) Received: from localhost ([::1]:41512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHB5A-00022I-1O for incoming@patchwork.ozlabs.org; Wed, 25 Mar 2020 14:48:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48494) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHB3t-0001ya-Ic for qemu-devel@nongnu.org; Wed, 25 Mar 2020 14:47:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jHB3s-0003b2-Np for qemu-devel@nongnu.org; Wed, 25 Mar 2020 14:47:33 -0400 Received: from us-smtp-delivery-74.mimecast.com ([63.128.21.74]:29692) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jHB3s-0003Zq-KA for qemu-devel@nongnu.org; Wed, 25 Mar 2020 14:47:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585162050; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OigUbXivSF6ZS4r3e9HzK7ArZNpi3GGVq63hNzveIAg=; b=fzMtLCmXpCZ4ya/y5WtQ8PxhPyqDzQZ25KhIh0AD9jit/fOKpcFZCddcfCA8WamT9NAs1b 5lXLJaYT8qBS0L/pJcRls+Dipr/fjewBn2EZtIDjYt+ECQEnIIcTWwY7ZbeWDBrRx5AVge f8jCiQEyDVrW9m0i0ag8XG32k2UMPVw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-194-Bz8dvgwDNyO2JNEyxcyerw-1; Wed, 25 Mar 2020 14:47:28 -0400 X-MC-Unique: Bz8dvgwDNyO2JNEyxcyerw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9E99913F6; Wed, 25 Mar 2020 18:47:27 +0000 (UTC) Received: from localhost (unknown [10.36.110.10]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6D88219C70; Wed, 25 Mar 2020 18:47:24 +0000 (UTC) From: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= To: qemu-devel@nongnu.org Subject: [PATCH for-5.0 0/3] Memory leak fixes Date: Wed, 25 Mar 2020 19:47:20 +0100 Message-Id: <20200325184723.2029630-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 63.128.21.74 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Eduardo Habkost , Juan Quintela , Michael Roth , Markus Armbruster , =?utf-8?q?Marc-Andr=C3=A9_Lure?= =?utf-8?q?au?= , Paolo Bonzini , "Dr. David Alan Gilbert" Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Hi, A small series of leaks spotted by ASAN during "make check". Marc-André Lureau (3): migration: fix cleanup_bh leak on resume qmp: fix leak on callbacks that return both value and error object-add: don't create return value if failed migration/migration.c | 7 ++++++- qapi/qmp-dispatch.c | 2 ++ qom/qom-qmp-cmds.c | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-)