From patchwork Mon Dec 30 15:56:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paulo Zanoni X-Patchwork-Id: 3419711 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B184A9F37A for ; Mon, 30 Dec 2013 15:57:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2FD2B20107 for ; Mon, 30 Dec 2013 15:57:25 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 20D72200F3 for ; Mon, 30 Dec 2013 15:57:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F3891FA7C5; Mon, 30 Dec 2013 07:57:20 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-qe0-f43.google.com (mail-qe0-f43.google.com [209.85.128.43]) by gabe.freedesktop.org (Postfix) with ESMTP id D7A04FB757 for ; Mon, 30 Dec 2013 07:57:12 -0800 (PST) Received: by mail-qe0-f43.google.com with SMTP id jy17so11652470qeb.30 for ; Mon, 30 Dec 2013 07:57:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8hdr2QgEjvRiDE175PieZwKqGHUlmDLGT+4fKRUpOJE=; b=nl66Pqzg1O+7urmw/LBcckikEmKYT4k8dNxdVLPNrk/krlMhMSIS7q1dklk8zouty8 h0tzraLupflkxi0biXlUOfT0MPqer5PK0KnZguCj+aq3tYeDGliLMBAeT80dsRz9RJmh nobTeCtjC0PP20GOeQv4Qqdqh6EK71olyf5PudnuEQRpdJnttGcBnvvu5odIMBK6uGUM K49PmW0bdXA1Wc7tc6IoxkHs8k7hFWCRt6Y+flV3ukQ9a8Okx5dOCkSI7HqPAY5G3qdX oIjz4jRS+Mt6oR7rmmmcX9gU/rkeON4safr8us6ToA0abDWTKxTKiS9jplPZXPgDrGER DmWg== X-Received: by 10.49.108.200 with SMTP id hm8mr111516454qeb.53.1388419032461; Mon, 30 Dec 2013 07:57:12 -0800 (PST) Received: from localhost.localdomain ([187.112.58.219]) by mx.google.com with ESMTPSA id o3sm66129491qak.5.2013.12.30.07.57.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Dec 2013 07:57:12 -0800 (PST) From: Paulo Zanoni To: intel-gfx@lists.freedesktop.org Date: Mon, 30 Dec 2013 13:56:50 -0200 Message-Id: <1388419013-17016-3-git-send-email-przanoni@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1388419013-17016-1-git-send-email-przanoni@gmail.com> References: <1388419013-17016-1-git-send-email-przanoni@gmail.com> Cc: Paulo Zanoni Subject: [Intel-gfx] [PATCH 3/6] tests/kms_flip: don't leak the connector when setting DPMS X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable 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 From: Paulo Zanoni Caught by Valgrind. Signed-off-by: Paulo Zanoni --- tests/kms_flip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/kms_flip.c b/tests/kms_flip.c index eaa42b5..80f4d76 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -295,6 +295,8 @@ static void dpms_off_other_outputs(struct test_output *o) set_connector_dpms(connector, DRM_MODE_DPMS_ON); set_connector_dpms(connector, DRM_MODE_DPMS_OFF); + + drmModeFreeConnector(connector); next: ; }