From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 13159A046B for ; Fri, 28 Jun 2019 10:38:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C00F734F0; Fri, 28 Jun 2019 10:38:53 +0200 (CEST) Received: from mail-vs1-f65.google.com (mail-vs1-f65.google.com [209.85.217.65]) by dpdk.org (Postfix) with ESMTP id 0839F34F0 for ; Fri, 28 Jun 2019 10:38:52 +0200 (CEST) Received: by mail-vs1-f65.google.com with SMTP id v6so3531238vsq.4 for ; Fri, 28 Jun 2019 01:38:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=I97w/VNZ3h9IISxvHPwZt2VJrgfQfIpdaZKdXaCELJo=; b=G9eMhqBugsYVsVKgOB9nYeMWjlQzERpAairyzoz+dob8bdtGGXMnsUWX/grgQNLteY zHS/qlygsuaMh1O9SM0NPP75JLbxKZQXTDyvepj0kC3B3Xe8hFMOor9nzc8Gu0gu0F5K 39w2urTICxAdObN5fQ1yQZtWtjsYVAFaUWh5XbilhBkfHYsCobTofg5uX11E9GCNyvcc FvDjDmgawu0fdqa2gJrq6NSa6eYJb0O7SeT6+HbR8FiQDn/YJcNgtsnU48xDhHcoqhEQ ejgx4JKuIBi7YV68Vh9QOl6auRlfo/zaYdeL9oVVkACxFUCN7bxisFoQzfDoXG37wYiB JYLg== X-Gm-Message-State: APjAAAWH65wue89NIq/T1RO2pXd2jWrnDDB9PIHkZzzVowJLg6DINBpE zuhNhMCyoAeESryWoCO6DJR7E/vojCnZfj9wc98+hQ== X-Google-Smtp-Source: APXvYqznrkKj19E//b/LsdBWYWVJzjquYDql+e6EeC8O7M4/6dqe+ZiTENcgwXwIp1a1khMQYilel0zFDBkp9ozdvkM= X-Received: by 2002:a67:2ec8:: with SMTP id u191mr5875156vsu.39.1561711131457; Fri, 28 Jun 2019 01:38:51 -0700 (PDT) MIME-Version: 1.0 References: <20190627032420.4730-1-honnappa.nagarahalli@arm.com> <20190628045254.17614-1-honnappa.nagarahalli@arm.com> <20190628045254.17614-3-honnappa.nagarahalli@arm.com> In-Reply-To: <20190628045254.17614-3-honnappa.nagarahalli@arm.com> From: David Marchand Date: Fri, 28 Jun 2019 10:38:40 +0200 Message-ID: To: Honnappa Nagarahalli Cc: "Wang, Yipeng1" , "Gobriel, Sameh" , Bruce Richardson , Pablo de Lara , Dharmik Thakkar , dev , nd , dpdk stable Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-stable] [PATCH v2 3/3] test/hash: free allocated memory X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Fri, Jun 28, 2019 at 6:53 AM Honnappa Nagarahalli < honnappa.nagarahalli@arm.com> wrote: > Free allocated memory. > > Fixes: 3f9aab961ed3 ("test/hash: check lock-free extendable bucket") > Cc: stable@dpdk.org > > Signed-off-by: Honnappa Nagarahalli > Reviewed-by: Dharmik Thakkar > --- > app/test/test_hash_readwrite_lf.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/app/test/test_hash_readwrite_lf.c > b/app/test/test_hash_readwrite_lf.c > index 12522e265..9b054dec0 100644 > --- a/app/test/test_hash_readwrite_lf.c > +++ b/app/test/test_hash_readwrite_lf.c > > [snip] @@ -653,6 +656,8 @@ test_rwc_reader(__attribute__((unused)) void *arg) > cycles = rte_rdtsc_precise() - begin; > rte_atomic64_add(&gread_cycles, cycles); > rte_atomic64_add(&greads, read_cnt*loop_cnt); > + > + rte_free(pos); > return 0; > } > In this function, there are three other places returning -1 without freeing pos. -- David Marchand