lxclock: logically dead code

Fixes: Coverity 1461722 Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent ecd80497
...@@ -169,8 +169,6 @@ struct lxc_lock *lxc_newlock(const char *lxcpath, const char *name) ...@@ -169,8 +169,6 @@ struct lxc_lock *lxc_newlock(const char *lxcpath, const char *name)
l->type = LXC_LOCK_FLOCK; l->type = LXC_LOCK_FLOCK;
l->u.f.fname = lxclock_name(lxcpath, name); l->u.f.fname = lxclock_name(lxcpath, name);
if (!l->u.f.fname) { if (!l->u.f.fname) {
if (!name)
free(l->u.sem);
free(l); free(l);
l = NULL; l = NULL;
goto on_error; goto on_error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment