Merge pull request #2350 from Blub/seccomp-cleanup-fixup

seccomp: leak fixup
This commit is contained in:
Christian Brauner 2018-05-25 09:13:29 +02:00 committed by GitHub
commit 8cd059dfdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,8 +54,10 @@ static int parse_config_v1(FILE *f, struct lxc_conf *conf)
int nr;
ret = sscanf(line, "%d", &nr);
if (ret != 1)
return -1;
if (ret != 1) {
ret = -1;
break;
}
#if HAVE_SCMP_FILTER_CTX
ret = seccomp_rule_add(conf->seccomp_ctx, SCMP_ACT_ALLOW, nr, 0);