login
Header Space

 
 

Re: [PATCH] leak less memory in failure paths of alloc_rt_sched_group()

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jesper Juhl <jesper.juhl@...>
Cc: LKML <linux-kernel@...>, Linus Torvalds <torvalds@...>, <linux-mm@...>, Ingo Molnar <mingo@...>
Date: Sunday, March 2, 2008 - 7:19 pm

On Mon, 2008-03-03 at 00:09 +0100, Jesper Juhl wrote:

Doesn't the following handle that:

sched_create_group()
{
...
	if (!alloc_rt_sched_group())
		goto err;
...

err:
	free_sched_group();
}


free_sched_group()
{
...
	free_rt_sched_group();
...
}

free_rt_sched_group()
{
 	free all relevant stuff
}

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

Messages in current thread:
Re: [PATCH] leak less memory in failure paths of alloc_rt_sc..., Peter Zijlstra, (Sun Mar 2, 7:19 pm)
speck-geostationary