From: Christian Brauner Date: Wed, 6 Dec 2017 20:30:42 +0000 (+0100) Subject: coverity: #1425737 X-Git-Tag: lxc-3.0.0.beta1~129^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5384511cea54bb5e37a4b4904ac9d28ad2bb9b0f;p=thirdparty%2Flxc.git coverity: #1425737 free allocated memory Signed-off-by: Christian Brauner --- diff --git a/src/lxc/storage/rsync.c b/src/lxc/storage/rsync.c index 55c9504e7..83d558e79 100644 --- a/src/lxc/storage/rsync.c +++ b/src/lxc/storage/rsync.c @@ -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; }