]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
cgrulesengd: Improve handling of out-of-memory.
authorNelson Elhage <nelhage@ksplice.com>
Fri, 18 Feb 2011 01:55:11 +0000 (20:55 -0500)
committerJan Safranek <jsafrane@redhat.com>
Wed, 23 Feb 2011 12:28:27 +0000 (13:28 +0100)
commitbb6dfd8f11081f4a7b3af815a8e3ef51afb3b0d9
treed22bf4891a9c448ec551e1215c24c89cb33d0bcc
parente7c0c0888c3ba4698ccf5c7ebfd073af5749583d
cgrulesengd: Improve handling of out-of-memory.

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 <nelhage@ksplice.com>
Signed-off-by: Jan Safranek <jsafrane@redhat.com>
src/daemon/cgrulesengd.c