Skip to content

Commit

Permalink
lxclock: logically dead code
Browse files Browse the repository at this point in the history
Fixes: Coverity 1461722
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Dec 15, 2020
1 parent ecd8049 commit b19fbb7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/lxc/lxclock.c
Expand Up @@ -169,8 +169,6 @@ struct lxc_lock *lxc_newlock(const char *lxcpath, const char *name)
l->type = LXC_LOCK_FLOCK;
l->u.f.fname = lxclock_name(lxcpath, name);
if (!l->u.f.fname) {
if (!name)
free(l->u.sem);
free(l);
l = NULL;
goto on_error;
Expand Down

0 comments on commit b19fbb7

Please sign in to comment.