[systemd-devel] [systemd-commits] src/bus-proxyd src/login src/machine src/nspawn src/tmpfiles

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Mon Feb 2 15:50:02 PST 2015


On Mon, Feb 02, 2015 at 02:07:37PM -0800, Thomas H.P. Andersen wrote:
> --- a/src/nspawn/nspawn.c
> +++ b/src/nspawn/nspawn.c
> @@ -3610,7 +3610,6 @@ int main(int argc, char *argv[]) {
>                  }
>  
>                  if (arg_ephemeral) {
> -                        _cleanup_release_lock_file_ LockFile original_lock = LOCK_FILE_INIT;
>                          char *np;
>  
>                          /* If the specified path is a mount point we
> diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
> index 930b9a6..443851a 100644
> --- a/src/tmpfiles/tmpfiles.c
> +++ b/src/tmpfiles/tmpfiles.c
> @@ -630,7 +630,7 @@ static int get_xattrs_from_arg(Item *i) {
>  
>          while ((r = unquote_first_word(&p, &xattr, false)) > 0) {
>                  _cleanup_free_ char *tmp = NULL, *name = NULL,
> -                        *value = NULL, *value2 = NULL, *_xattr = xattr;
> +                        *value = NULL, *value2 = NULL;
This leaks xattr, no?

Zbyszek


More information about the systemd-devel mailing list