Re: [PATCH] slub: operate cache name memory same to slab and slob

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matt Mackall
Date: Thursday, November 18, 2010 - 2:15 pm

On Thu, 2010-11-18 at 11:00 +0800, b32542@freescale.com wrote:

I don't get it.

Caller allocates X, passes X to slub, slub duplicates X as X', and
properly frees X', then caller frees X. Yes, that's silly, but where's
the leak?

But slub and slab should obviously both manage names in the same way,
namely the historical "caller allocates" way. So:

Acked-by: Matt Mackall <mpm@selenic.com>



-- 
Mathematics is the supreme nostalgia of our time.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] slub: operate cache name memory same to slab a ..., Matt Mackall, (Thu Nov 18, 2:15 pm)