Memleak Fix for actiongroups

Signed-off-by: Alexander Ivannikov <Alexivan_91@hotmail.com>