diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c index a9363421f8095f11d5c66b4b4126808781e8593b..af02b5460503bdf977325ae002f2c998e2b94e2f 100644 --- a/src/lxc/lxc_container.c +++ b/src/lxc/lxc_container.c @@ -1143,8 +1143,8 @@ static int lxcContainerSetupDevices(char **ttyPaths, size_t nttyPaths) return -1; if (virFileBindMountDevice(ttyPaths[i], tty) < 0) { - return -1; VIR_FREE(tty); + return -1; } VIR_FREE(tty);