Unverified Commit 274615f9 by Christian Brauner Committed by GitHub

Merge pull request #3780 from evverx/cgpath-mem-leak

tests: fix a memory leak in cgpath
parents aeff7df6 5a9fae9e
...@@ -60,7 +60,7 @@ static int test_running_container(const char *lxcpath, const char *name) ...@@ -60,7 +60,7 @@ static int test_running_container(const char *lxcpath, const char *name)
char *cgrelpath; char *cgrelpath;
char relpath[PATH_MAX+1]; char relpath[PATH_MAX+1];
char value[NAME_MAX], value_save[NAME_MAX]; 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)); (void)strlcpy(template, P_tmpdir"/attach_XXXXXX", sizeof(template));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment