Skip to content

Commit

Permalink
Merge pull request #3780 from evverx/cgpath-mem-leak
Browse files Browse the repository at this point in the history
tests: fix a memory leak in cgpath
  • Loading branch information
Christian Brauner committed Apr 13, 2021
2 parents aeff7df + 5a9fae9 commit 274615f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/cgpath.c
Expand Up @@ -60,7 +60,7 @@ static int test_running_container(const char *lxcpath, const char *name)
char *cgrelpath;
char relpath[PATH_MAX+1];
char value[NAME_MAX], value_save[NAME_MAX];
struct cgroup_ops *cgroup_ops;
call_cleaner(cgroup_exit) struct cgroup_ops *cgroup_ops = NULL;

(void)strlcpy(template, P_tmpdir"/attach_XXXXXX", sizeof(template));

Expand Down

0 comments on commit 274615f

Please sign in to comment.