]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
libcgroup: Fixed dereferencing of uninitialized variable when modifying a group
authorJan Safranek <jsafrane@redhat.com>
Wed, 24 Aug 2011 09:46:20 +0000 (11:46 +0200)
committerJan Safranek <jsafrane@redhat.com>
Mon, 19 Sep 2011 11:27:38 +0000 (13:27 +0200)
commit9d57fa759b540fcb208e6f15ab52ba5000db9e84
tree683050dec8f5710a73692f6da4a5a40becb979e6
parent6be07ae10161ce4fbb28025186b2ce14c65d7825
libcgroup: Fixed dereferencing of uninitialized variable when modifying a group

When group->index == 0, uninitialized variable path might get freed. Path is
always freed in the loop, so it is useless to free it before return.

Signed-off-by: Jan Safranek <jsafrane@redhat.com>
src/api.c