conf: cleanup macros setup_proc_filesystem

parent e6f76452
......@@ -2666,10 +2666,10 @@ int setup_sysctl_parameters(struct lxc_list *sysctls)
int setup_proc_filesystem(struct lxc_list *procs, pid_t pid)
{
__do_free char *tmp = NULL;
struct lxc_list *it;
struct lxc_proc *elem;
int ret = 0;
char *tmp = NULL;
char filename[PATH_MAX] = {0};
lxc_list_for_each (it, procs) {
......@@ -2681,7 +2681,6 @@ int setup_proc_filesystem(struct lxc_list *procs, pid_t pid)
}
ret = snprintf(filename, sizeof(filename), "/proc/%d/%s", pid, tmp);
free(tmp);
if (ret < 0 || (size_t)ret >= sizeof(filename)) {
ERROR("Error setting up proc filesystem path");
return -1;
......
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