Re: [PATCH] sched domain sysctl: free kstrdup allocations

From: Ingo Molnar
Date: Tue Oct 16 2007 - 04:44:46 EST



* Milton Miller <miltonm@xxxxxxx> wrote:

> The procnames for the cpu and domain were allocated via kstrdup and so
> should also be freed. The names for the files are static, but we can
> differentiate them by the presence of the proc_handler. If a kstrdup
> (of < 32 characters) fails the sysctl code will not see the procname
> or remaining table entries, but any child tables and names will be
> reclaimed upon free.

thanks, applied.

Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/