templates have to be coppied in proper way to template_table structure      cgroup_reload_cached_templates and cgroup_init_templates_cache functions fill structure template_table in old version the data are coppied (memcpy function) from config_template_table.  This causes problem if both template_table and config_template_table are reloaded or if config_template_table is updated. Patch fix this problem and copy data properly (cgroup_copy_cgroup function)     The reproducer of this bug is described in http://sourceforge.net/mailarchive/forum.php?thread_name=khtfkj%24c8l%241%40ger.gmane.org&forum_name=libcg-devel
templates have to be coppied in proper way to template_table structure
    
cgroup_reload_cached_templates and cgroup_init_templates_cache functions fill structure template_table in old version the data are coppied
(memcpy function) from config_template_table. 
This causes problem if both template_table and config_template_table are reloaded or if config_template_table is updated. Patch fix this problem and copy data properly (cgroup_copy_cgroup function)
    The reproducer of this bug is described in http://sourceforge.net/mailarchive/forum.php?thread_name=khtfkj%24c8l%241%40ger.gmane.org&forum_name=libcg-devel

Signed-off-by: Ivana Hutarova Varekova <2e3918a0a366ea7e658a2062ab582c898a7e1b1b@redhat.com>
Acked-By: Jan Safranek <a7f4b96ffdd515ecef00f117294da18555749b0b@redhat.com>

rafalmiel/libcg,rafalmiel/libcg,rafalmiel/libcg,rafalmiel/libcg