From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from compass.polito.it (compass.polito.it [130.192.55.110]) by dpdk.org (Postfix) with ESMTP id 0391E532D for ; Wed, 18 Nov 2015 23:29:20 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by compass.polito.it (Postfix) with ESMTP id C04E0100106 for ; Wed, 18 Nov 2015 23:29:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= studenti.polito.it; h=x-mailer:message-id:date:date:subject :subject:to:from:from:received:received; s=y2k10; t=1447885759; bh=rRu0EP+clD4lP7iYZgyQgUOA6oNbFFwBDwpYp5dty1I=; b=n8TklmWkIO3W 33Aj5etrNGjkq7RcF3sWD5KJtp8MMLwdwVQ1ym+/hd8KPn/cz7a5SvV7ULgW7HLm 5TyMjmzz5S8hs2e3nMrlVxzunrjgcdk0YjQh7OWGeEwjGtFs8ugdvNS71dwi2pnD wDgrHxoIa0DfpEbRgX8TWLAgHyKSZEM= X-Virus-Scanned: amavisd-new at studenti.polito.it Received: from compass.polito.it ([127.0.0.1]) by localhost (compass.polito.it [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id fVWMJKMw5DJY for ; Wed, 18 Nov 2015 23:29:19 +0100 (CET) Received: from localhost.localdomain (unknown [93.56.81.136]) (using TLSv1.2 with cipher AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: s203403@studenti.polito.it) by compass.polito.it (Postfix) with ESMTPSA id E85801000DA for ; Wed, 18 Nov 2015 23:29:18 +0100 (CET) From: Mauricio Vasquez B To: dev@dpdk.org Date: Wed, 18 Nov 2015 23:29:17 +0100 Message-Id: <1447885757-13038-1-git-send-email-mauricio.vasquezbernal@studenti.polito.it> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH] ring: Fix memory leakage in rte_pmd_ring_devuninit() X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Nov 2015 22:29:20 -0000 When freeing the device, it is also necessary to free rx_queues and tx_queues Signed-off-by: Mauricio Vasquez B --- drivers/net/ring/rte_eth_ring.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c index 9a31bce..e091e4f 100644 --- a/drivers/net/ring/rte_eth_ring.c +++ b/drivers/net/ring/rte_eth_ring.c @@ -582,6 +582,9 @@ rte_pmd_ring_devuninit(const char *name) return -ENODEV; eth_dev_stop(eth_dev); + + rte_free(eth_dev->data->rx_queues); + rte_free(eth_dev->data->tx_queues); rte_free(eth_dev->data->dev_private); rte_free(eth_dev->data); -- 1.9.1