Re: [Libcg-devel] [PATCH 1/2] cgrulesengd: Improve handling of out-of-memory.

2011-02-23 Thread Jan Safranek
On 02/18/2011 02:55 AM, Nelson Elhage wrote: > Don't leak the old array if the allocation fails, and don't touch > num_allocation > if the allocation fails. > > Signed-off-by: Nelson Elhage Acked-By: Jan Safranek > --- > src/daemon/cgrulesengd.c | 20 > 1 files changed,

[Libcg-devel] [PATCH 1/2] cgrulesengd: Improve handling of out-of-memory.

2011-02-22 Thread Nelson Elhage
Don't leak the old array if the allocation fails, and don't touch num_allocation if the allocation fails. Signed-off-by: Nelson Elhage --- src/daemon/cgrulesengd.c | 20 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/daemon/cgrulesengd.c b/src/daemon/c