1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 02:57:16 +03:00

machinectl: fix minor memory leak

This commit is contained in:
Lennart Poettering 2015-01-14 22:30:43 +01:00
parent aa0fff7f9c
commit bb4a228207

View File

@ -1065,11 +1065,11 @@ static int copy_files(int argc, char *argv[], void *userdata) {
return -EINVAL; return -EINVAL;
} }
t = strdup(host_path); t = strdupa(host_path);
host_basename = basename(t); host_basename = basename(t);
host_dirname = dirname(host_path); host_dirname = dirname(host_path);
t = strdup(container_path); t = strdupa(container_path);
container_basename = basename(t); container_basename = basename(t);
container_dirname = dirname(container_path); container_dirname = dirname(container_path);