From patchwork Thu Jun 25 23:26:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lespiau, Damien" X-Patchwork-Id: 6677861 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 863229F380 for ; Thu, 25 Jun 2015 23:27:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C08F2206F9 for ; Thu, 25 Jun 2015 23:27:07 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id EF822206F7 for ; Thu, 25 Jun 2015 23:27:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 772894A001; Thu, 25 Jun 2015 16:27:06 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 404686E47D for ; Thu, 25 Jun 2015 16:27:03 -0700 (PDT) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP; 25 Jun 2015 16:27:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,680,1427785200"; d="scan'208";a="594940198" Received: from mpaszkie-mobl1.ger.corp.intel.com (HELO strange.ger.corp.intel.com) ([10.252.33.58]) by orsmga003.jf.intel.com with ESMTP; 25 Jun 2015 16:27:02 -0700 From: Damien Lespiau To: intel-gfx@lists.freedesktop.org Date: Fri, 26 Jun 2015 00:26:56 +0100 Message-Id: <1435274819-2777-2-git-send-email-damien.lespiau@intel.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1435274819-2777-1-git-send-email-damien.lespiau@intel.com> References: <1435274819-2777-1-git-send-email-damien.lespiau@intel.com> Subject: [Intel-gfx] [PATCH i-g-t 2/5] tests/igt_stats: Call igt_stats_fini() to not leak the array X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, 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 Sure, it'll be freed at exit(), but might as well be a bit pedantic. Signed-off-by: Damien Lespiau --- lib/tests/igt_stats.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tests/igt_stats.c b/lib/tests/igt_stats.c index 3f45314..c20b453 100644 --- a/lib/tests/igt_stats.c +++ b/lib/tests/igt_stats.c @@ -41,6 +41,8 @@ static void test_mean(void) mean = igt_stats_get_mean(&stats); igt_assert(mean == (2 + 4 + 6 + 8 + 10) / 5.); + + igt_stats_fini(&stats); } igt_simple_main