[lxc-devel] [lxc/lxc] b8a6a0: lxclock: fix a small memory leak

Christian Brauner noreply at github.com
Mon Feb 10 17:06:42 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: b8a6a00cc385fc0c6f36c6497f03a3fd40059706
      https://github.com/lxc/lxc/commit/b8a6a00cc385fc0c6f36c6497f03a3fd40059706
  Author: Tycho Andersen <tycho at tycho.ws>
  Date:   2020-02-10 (Mon, 10 Feb 2020)

  Changed paths:
    M src/lxc/lxclock.c

  Log Message:
  -----------
  lxclock: fix a small memory leak

if (!name), we allocate an unnamed semaphore, but if we then fail to
allocate/create the lock, we don't free this semaphore, and we just leak
it.

Signed-off-by: Tycho Andersen <tycho at tycho.ws>


  Commit: 1d5f322246e030e1c6aa7b27c322bfc6995eb4d6
      https://github.com/lxc/lxc/commit/1d5f322246e030e1c6aa7b27c322bfc6995eb4d6
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-02-10 (Mon, 10 Feb 2020)

  Changed paths:
    M src/lxc/lxclock.c

  Log Message:
  -----------
  Merge pull request #3264 from tych0/fix-leak

lxclock: fix a small memory leak


Compare: https://github.com/lxc/lxc/compare/a5ee97e62914...1d5f322246e0


More information about the lxc-devel mailing list