From patchwork Thu Aug 17 21:00:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 110345 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp33071qge; Thu, 17 Aug 2017 14:02:35 -0700 (PDT) X-Received: by 10.55.25.9 with SMTP id k9mr10042323qkh.293.1503003755434; Thu, 17 Aug 2017 14:02:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503003755; cv=none; d=google.com; s=arc-20160816; b=YWf68YWmTeKxxaKiiUkVN/YLCGZlvOLuNexLwZnaCdATxIi1czXO2FqPYjhDtAc7S4 C0ofi8M7t7Mq/ikDHXq4qEpKN4j+vqFMXBK8O0EHRGQ114DRuy1+irHR5jb3DOWXoyvI ybfWFYu4IpBGpRgmm4RTFypijhs7XNyiIPAZ9zDSPQNxc3Jri3Z3qpzuIBhwglXHyNmg 0w0FEErFkBTbaPOVm+oKrP/mPmtRou4a5FRNK74h7RqBWzr+y6AobzDfNt9t/YJByTUH 0hTqLKGbJ6/N0NM2s3ziqYqMwWJN3haxzNGKgd9fJtT8hZbu++Qv+9ZKlnXFdzHVQIaN WpZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=hzGPFxOcUXEuFoN46nahFdeM9rO5MrfnXlMdIUpA1ss=; b=SzWANsKBmr9fkYkSsu/9pveFvoenFXSOWdBUNr960AD0xNaK9cE5yac218Aknupnqh 8fjDVQPlOgm602R4bvhNTAi/dbj5SH0R3NXsOQ7Xy5tO++pd9xb4UmgyklYo30hJ/h3n fdxe3o2tJu6A+EJNDvQja4x9YQ1MBxChyVZdK+DV4XpjPRqXFiXKAqb8p3ryMwKCQO36 DoS2AgHuveN0XPTtMR9mbMO3yVjBlr42OcVw+jR8iePaQyalmtSdFNSCFCQC76/WZMwk qYw6JOFb6KCMwjbQv4Ow+zqygojdmc9TYin2OXMw6s1Bx0jTLhVho9bjK0Yl6pKvPB7f ZLNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id c65si224708qkh.382.2017.08.17.14.02.35; Thu, 17 Aug 2017 14:02:35 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 1BF31609E0; Thu, 17 Aug 2017 21:02:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id D355A60C47; Thu, 17 Aug 2017 21:01:21 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id B1CDD6089D; Thu, 17 Aug 2017 21:01:14 +0000 (UTC) Received: from forward100o.mail.yandex.net (forward100o.mail.yandex.net [37.140.190.180]) by lists.linaro.org (Postfix) with ESMTPS id 2361D659D2 for ; Thu, 17 Aug 2017 21:00:47 +0000 (UTC) Received: from mxback2o.mail.yandex.net (mxback2o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1c]) by forward100o.mail.yandex.net (Yandex) with ESMTP id C2A5B2A24201 for ; Fri, 18 Aug 2017 00:00:45 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback2o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id CxpFKPpopu-0jSSQw9L; Fri, 18 Aug 2017 00:00:45 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id RsEpBHFVjr-0jxeGiMT; Fri, 18 Aug 2017 00:00:45 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 18 Aug 2017 00:00:06 +0300 Message-Id: <1503003607-14013-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503003607-14013-1-git-send-email-odpbot@yandex.ru> References: <1503003607-14013-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 131 Subject: [lng-odp] [PATCH v1 3/4] test: classifier: fix double free X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Maxim Uvarov looks like merge conflict was resolved wrongly and test has double free. Signed-off-by: Maxim Uvarov --- /** Email created from pull request 131 (muvarov:master_loop_cls_fix) ** https://github.com/Linaro/odp/pull/131 ** Patch: https://github.com/Linaro/odp/pull/131.patch ** Base sha: 90d4ce1b3b25ca18446131906007571cc0ed0191 ** Merge commit sha: 30f51ee13b0bf800873a9be2c9a15b6a0c1db14d **/ .../validation/api/classification/odp_classification_test_pmr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/common_plat/validation/api/classification/odp_classification_test_pmr.c b/test/common_plat/validation/api/classification/odp_classification_test_pmr.c index e6b496a1..0acf2cf7 100644 --- a/test/common_plat/validation/api/classification/odp_classification_test_pmr.c +++ b/test/common_plat/validation/api/classification/odp_classification_test_pmr.c @@ -171,8 +171,6 @@ void classification_test_pktin_classifier_flag(void) CU_ASSERT(seqno == cls_pkt_get_seq(pkt)); odp_packet_free(pkt); - - odp_packet_free(pkt); odp_cos_destroy(cos); odp_cos_destroy(default_cos); odp_cls_pmr_destroy(pmr);