From patchwork Mon Sep 11 15:13:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Matz X-Patchwork-Id: 28592 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C021C1B1BB; Mon, 11 Sep 2017 17:14:02 +0200 (CEST) Received: from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com [62.23.145.76]) by dpdk.org (Postfix) with ESMTP id 0A1D27CB3 for ; Mon, 11 Sep 2017 17:13:52 +0200 (CEST) Received: from glumotte.dev.6wind.com (unknown [10.16.0.195]) by proxy.6wind.com (Postfix) with ESMTP id 0E9D9CF331 for ; Mon, 11 Sep 2017 17:09:58 +0200 (CEST) From: Olivier Matz To: dev@dpdk.org Date: Mon, 11 Sep 2017 17:13:32 +0200 Message-Id: <20170911151333.5727-10-olivier.matz@6wind.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170911151333.5727-1-olivier.matz@6wind.com> References: <20170911151333.5727-1-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH 09/10] app/test-crypto-perf: fix memory leak X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" data is allocated but never freed. Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application") Signed-off-by: Olivier Matz Acked-by: Pablo de Lara --- app/test-crypto-perf/cperf_test_verify.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test-crypto-perf/cperf_test_verify.c b/app/test-crypto-perf/cperf_test_verify.c index a314646c2..5221f2251 100644 --- a/app/test-crypto-perf/cperf_test_verify.c +++ b/app/test-crypto-perf/cperf_test_verify.c @@ -386,6 +386,7 @@ cperf_verify_op(struct rte_crypto_op *op, options->digest_sz); } + rte_free(data); return !!res; }