From patchwork Fri Mar 20 12:00:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 46144 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f200.google.com (mail-we0-f200.google.com [74.125.82.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2FE5621418 for ; Fri, 20 Mar 2015 12:01:27 +0000 (UTC) Received: by wesq59 with SMTP id q59sf17027406wes.1 for ; Fri, 20 Mar 2015 05:01:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=e47EM9VJ8JKMOf7QC5KfDUQDFi7FDFnDQdcLn+BTztU=; b=jKZs23b0NXKfQgBLUPPo8gWSda5B0stLOQZhHA+Rzci462GZWwJMACN+U0dMZbAA8g NFfyX7wz3pcW7k8XQhMKYwDN8ud/TDqeE15K1p3hmVewi9Gwlu5pxaQuGisqja39gNc/ OKSyQcKi/7MiOC9SoCOptWV+GIgr/4w16v9HL0D0riPpCaYElbKB4n++HQMVTKQyAE/I /i1LMbT9JJh8C/NiUxBnhAm4g2c6LZUjDZNg6NrvdGxIFCCecI1d67OsqU5L8jPgubNf G/E/paL3RRQy4SJTh36BlrM9J1UbYCzL74upSQaaCjaC8sKWqH1+3cgv27ejEhFxebXV ENcg== X-Gm-Message-State: ALoCoQkmHX6wXo7AlN2kmpEGCQHuJSeNmYSWbi4oWBNzA2nQKXjbmS3xVaordBxzez8ajHZegW4m X-Received: by 10.112.162.135 with SMTP id ya7mr12837782lbb.14.1426852886222; Fri, 20 Mar 2015 05:01:26 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.82 with SMTP id u18ls464622lal.79.gmail; Fri, 20 Mar 2015 05:01:26 -0700 (PDT) X-Received: by 10.112.123.99 with SMTP id lz3mr58361917lbb.48.1426852886082; Fri, 20 Mar 2015 05:01:26 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id y3si3102838laj.9.2015.03.20.05.01.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Mar 2015 05:01:26 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by labjg1 with SMTP id jg1so85185413lab.2 for ; Fri, 20 Mar 2015 05:01:26 -0700 (PDT) X-Received: by 10.112.130.195 with SMTP id og3mr71575325lbb.112.1426852885950; Fri, 20 Mar 2015 05:01:25 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp976034lbj; Fri, 20 Mar 2015 05:01:25 -0700 (PDT) X-Received: by 10.140.40.70 with SMTP id w64mr101417055qgw.14.1426852884743; Fri, 20 Mar 2015 05:01:24 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id f82si4066725qhe.123.2015.03.20.05.01.22 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 20 Mar 2015 05:01:24 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YYvc7-00087y-Ed; Fri, 20 Mar 2015 12:01:19 +0000 Received: from mail-la0-f46.google.com ([209.85.215.46]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YYvc1-00087M-FP for lng-odp@lists.linaro.org; Fri, 20 Mar 2015 12:01:13 +0000 Received: by labe2 with SMTP id e2so9811242lab.3 for ; Fri, 20 Mar 2015 05:01:07 -0700 (PDT) X-Received: by 10.112.12.4 with SMTP id u4mr70134496lbb.4.1426852867253; Fri, 20 Mar 2015 05:01:07 -0700 (PDT) Received: from erachmi-VirtualBox.ki.sw.ericsson.se (c-83-233-76-75.cust.bredband2.com. [83.233.76.75]) by mx.google.com with ESMTPSA id iy9sm890264lbc.8.2015.03.20.05.01.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Mar 2015 05:01:06 -0700 (PDT) From: Christophe Milard To: lng-odp@lists.linaro.org Date: Fri, 20 Mar 2015 13:00:51 +0100 Message-Id: <1426852851-20368-1-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCHv2] validation: fixed memory leak in odp_cpumask.c X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: christophe.milard@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 CID 88273: Resource leaks (RESOURCE_LEAK) Signed-off-by: Christophe Milard --- now with CID in comments. test/validation/odp_cpumask.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/validation/odp_cpumask.c b/test/validation/odp_cpumask.c index 2285034..b7e18d6 100644 --- a/test/validation/odp_cpumask.c +++ b/test/validation/odp_cpumask.c @@ -148,6 +148,9 @@ static void test_odp_cpumask_to_from_str(void) CU_ASSERT_NSTRING_EQUAL(buf_out, TEST_MASK_CPU_0, stringlen(TEST_MASK_CPU_0) + 1); + + free(buf_out); + free(buf_in); } static void test_odp_cpumask_equal(void)