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>
Showing
Please
register
or
sign in
to comment