coverity: #1425737

free allocated memory Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 97ebced3
...@@ -80,6 +80,7 @@ int lxc_rsync_exec(const char *src, const char *dest) ...@@ -80,6 +80,7 @@ int lxc_rsync_exec(const char *src, const char *dest)
s[l - 1] = '\0'; s[l - 1] = '\0';
execlp("rsync", "rsync", "-aHXS", "--delete", s, dest, (char *)NULL); execlp("rsync", "rsync", "-aHXS", "--delete", s, dest, (char *)NULL);
free(s);
return -1; 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