[PATCH 1/2] net/ice: free memory with matching allocator

Bruce Richardson bruce.richardson at intel.com
Wed Oct 7 10:04:25 CEST 2026


On Wed, Oct 07, 2026 at 07:58:19AM +0000, Anurag Mandal wrote:
> Several buffers allocated with ice_malloc(), ice_calloc() or
> ice_memdup() were released using rte_free() instead of ice_free().
> Both APIs currently map to the same underlying allocator.
> However, mixing them is inconsistent and could break if the
> inconsistent and could break if the OS abstraction layer changes.
> 
> Use ice_free() for all memory obtained through the ice_malloc()
> family.
> 
> Signed-off-by: Anurag Mandal <anurag.mandal at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>


More information about the dev mailing list