[lxc-devel] [PATCH] add missing paranthesis
S.Çağlar Onur
caglar at 10ur.org
Fri Nov 15 04:22:35 UTC 2013
Please don't apply this as it contains an unrelated chunk in it.
Correct one will hit the list in a minute.
On Thu, Nov 14, 2013 at 11:21 PM, S.Çağlar Onur <caglar at 10ur.org> wrote:
> Signed-off-by: S.Çağlar Onur <caglar at 10ur.org>
> ---
> src/lxc/lsm/apparmor.c | 1 +
> src/lxc/lxccontainer.c | 4 ++--
> 2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/src/lxc/lsm/apparmor.c b/src/lxc/lsm/apparmor.c
> index aaf8056..a8d36c1 100644
> --- a/src/lxc/lsm/apparmor.c
> +++ b/src/lxc/lsm/apparmor.c
> @@ -90,6 +90,7 @@ again:
> sz += 1024;
> buf = realloc(buf, sz);
> if (!buf) {
> + free(buf);
> ERROR("out of memory");
> process_lock();
> fclose(f);
> diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c
> index 3cabf0d..11e70cb 100644
> --- a/src/lxc/lxccontainer.c
> +++ b/src/lxc/lxccontainer.c
> @@ -2958,9 +2958,9 @@ static bool add_remove_device_node(struct lxc_container *c, char *src_path, char
> goto out;
>
> /* continue if path is character device or block device */
> - if S_ISCHR(st.st_mode)
> + if (S_ISCHR(st.st_mode))
> ret = snprintf(value, MAX_BUFFER, "c %d:%d rwm", major(st.st_rdev), minor(st.st_rdev));
> - else if S_ISBLK(st.st_mode)
> + else if (S_ISBLK(st.st_mode))
> ret = snprintf(value, MAX_BUFFER, "b %d:%d rwm", major(st.st_rdev), minor(st.st_rdev));
> else
> goto out;
> --
> 1.8.3.2
>
--
S.Çağlar Onur <caglar at 10ur.org>
More information about the lxc-devel
mailing list