]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: #1425737
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 6 Dec 2017 20:30:42 +0000 (21:30 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 6 Dec 2017 22:13:20 +0000 (23:13 +0100)
free allocated memory

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/storage/rsync.c

index 55c9504e797f4ba8f47700215df4053ff0845a05..83d558e79723b748d3be85a7bfb845dd55db745a 100644 (file)
@@ -80,6 +80,7 @@ int lxc_rsync_exec(const char *src, const char *dest)
        s[l - 1] = '\0';
 
        execlp("rsync", "rsync", "-aHXS", "--delete", s, dest, (char *)NULL);
+       free(s);
        return -1;
 }