• Cyrill Gorcunov's avatar
    cg: props -- Fix resource leak on realloc failure · 3ae937d5
    Cyrill Gorcunov authored
     | *** CID 161426:  Resource leaks  (RESOURCE_LEAK)
     | /criu/cgroup-props.c: 318 in cgp_parse_stream()
     | 312                             }
     | 313
     | 314                             if (xrealloc_safe(&cgp_entry->cgp.props,
     | 315                                               (cgp_entry->cgp.nr_props + 1) * sizeof(char *))) {
     | 316                                     pr_err("Can't allocate property for controller %s\n",
     | 317                                            cgp_entry->cgp.name);
     | >>>     CID 161426:  Resource leaks  (RESOURCE_LEAK)
     | >>>     Variable "cgp_entry" going out of scope leaks the storage it points to.
     | 318                                     return -1;
     | 319                             }
    Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    3ae937d5
Name
Last commit
Last update
Documentation Loading commit data...
contrib Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
lib Loading commit data...
scripts Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...