From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AB21E42CBC for ; Thu, 15 Jun 2023 03:33:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A5908410D0; Thu, 15 Jun 2023 03:33:23 +0200 (CEST) Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by mails.dpdk.org (Postfix) with ESMTP id 2BEEE40DDA for ; Thu, 15 Jun 2023 03:33:22 +0200 (CEST) Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-31114b46d62so195386f8f.3 for ; Wed, 14 Jun 2023 18:33:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686792802; x=1689384802; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YLp/umsYdLL84+rE27b+S4Tf/NWbN3/hIdQFaui3xhg=; b=nBSpN6d6VxXUf7qRDrBYmPSpQhnXxvTKwDpHmE5wT+vuEiFCsmzVRjk9aCDOhUBtRp RO35HxXRnPpu0tXXBn3EbLqvV0MiFiTyWKjNRmf9B8jnclS4SPLOrgc17jsVT9SZVIJ5 OGfJEfK6oKabbuCSoRtkxU1+MtTLUMciAGSx8l9tDvwirHF3S6+ZrONga/xKSQacp7Zm lJ75DVt9COYXGlG3T4Gtyhav94t9eWZaBi7B8XWLgGRYCSndTAJrjhswo5/JsRfv1MsU +QP+jEYYHl/pOBXN1Csrr5zOil36+pjZBvV+IQpI/jBlXewEZEoboK5WJhDwKMeToNK4 J/JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686792802; x=1689384802; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YLp/umsYdLL84+rE27b+S4Tf/NWbN3/hIdQFaui3xhg=; b=geGuFZ2gQXZ1QL6MP3jBpO06jpPJ8uaFtLZNiaqKaBEopnE1igsnKmLdvk6ycAnqRw Hw0bNPokINCbJR1OGrp2bqChcH4Cz5kweg67m6MacdzWyhzNr6MP/dP/h9FF88bzZt7Y 0XKsZu9msotU8zNRvCLiQkWuqc72yn7YQJveh5tleAdcbMU5sVGqsa6TJgH8UqmSPJUF txhU9PYDIuhGv82kNUoEQhJdJDQ9XAjntz3sQbcq/j0/lAeQwqw6JUEfePh2khltVWpT 1OArcAfMEJth4IWg9btwcYp6kwQlSm+w6Uu4gpm0rqSynYqPFK/yXvyTQ3uDjK5F1YLn V/Yg== X-Gm-Message-State: AC+VfDzICE3+TMYOxQjgdjYguPEc58xnJtS+zAF0t8r0opv4L/YI+B+Q g5Sb/3foPpTPL6WDkTb/fI8= X-Google-Smtp-Source: ACHHUZ548Jg1SvAb0SKijNKW5ZFKafxXxpzFw1teeKe/tQUfA3DgxP7AtyqWL+ZN71NXoXrUef6N2Q== X-Received: by 2002:a05:6000:7:b0:311:1128:9634 with SMTP id h7-20020a056000000700b0031111289634mr901857wrx.54.1686792801771; Wed, 14 Jun 2023 18:33:21 -0700 (PDT) Received: from localhost ([2a01:4b00:d307:1000:f1d3:eb5e:11f4:a7d9]) by smtp.gmail.com with ESMTPSA id m9-20020adfe0c9000000b0030af15d7e41sm19736471wri.4.2023.06.14.18.33.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jun 2023 18:33:21 -0700 (PDT) From: luca.boccassi@gmail.com To: Ruifeng Wang Cc: Feifei Wang , Anatoly Burakov , dpdk stable Subject: patch 'test/malloc: fix missing free' has been queued to stable release 20.11.9 Date: Thu, 15 Jun 2023 02:32:04 +0100 Message-Id: <20230615013258.1439718-9-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230615013258.1439718-1-luca.boccassi@gmail.com> References: <20230615013258.1439718-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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 Hi, FYI, your patch has been queued to stable release 20.11.9 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/17/23. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/684876285d0a68b21162968324899744a30d7228 Thanks. Luca Boccassi --- >From 684876285d0a68b21162968324899744a30d7228 Mon Sep 17 00:00:00 2001 From: Ruifeng Wang Date: Fri, 19 May 2023 12:29:22 +0800 Subject: [PATCH] test/malloc: fix missing free [ upstream commit ec8ef136b8d9340003118bb25390d7c6989178bf ] Free the allocated buffer before returning. Fixes: a40a1f8231b4 ("app: various tests update") Signed-off-by: Ruifeng Wang Reviewed-by: Feifei Wang Acked-by: Anatoly Burakov --- app/test/test_malloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test/test_malloc.c b/app/test/test_malloc.c index 6d9249f831..cf1af6285f 100644 --- a/app/test/test_malloc.c +++ b/app/test/test_malloc.c @@ -927,6 +927,7 @@ test_alloc_single_socket(int32_t socket) if (mem == NULL) return -1; if (addr_to_socket(mem) != desired_socket) { + rte_free(mem); return -1; } rte_free(mem); -- 2.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-06-15 01:56:35.220471094 +0100 +++ 0009-test-malloc-fix-missing-free.patch 2023-06-15 01:56:34.503539905 +0100 @@ -1 +1 @@ -From ec8ef136b8d9340003118bb25390d7c6989178bf Mon Sep 17 00:00:00 2001 +From 684876285d0a68b21162968324899744a30d7228 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit ec8ef136b8d9340003118bb25390d7c6989178bf ] + @@ -9 +10,0 @@ -Cc: stable@dpdk.org @@ -19 +20 @@ -index de40e50611..f144b89d88 100644 +index 6d9249f831..cf1af6285f 100644 @@ -22 +23 @@ -@@ -937,6 +937,7 @@ test_alloc_single_socket(int32_t socket) +@@ -927,6 +927,7 @@ test_alloc_single_socket(int32_t socket)