]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxclock: fix a small memory leak 3264/head
authorTycho Andersen <tycho@tycho.ws>
Mon, 10 Feb 2020 15:14:33 +0000 (08:14 -0700)
committerTycho Andersen <tycho@tycho.ws>
Mon, 10 Feb 2020 15:14:33 +0000 (08:14 -0700)
commitb8a6a00cc385fc0c6f36c6497f03a3fd40059706
treea14f36fc9ef2bef3fa3fb7d11e907e32d2af7883
parent5f77c7d574db076bb930dd1626040f5504e7184e
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@tycho.ws>
src/lxc/lxclock.c