diff options
Diffstat (limited to 'src/firejail/main.c')
-rw-r--r-- | src/firejail/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c index 422a39128..e76f1b4f1 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -396,7 +396,9 @@ int main(int argc, char **argv) { | |||
396 | int arg_cgroup = 0; | 396 | int arg_cgroup = 0; |
397 | int custom_profile = 0; // custom profile loaded | 397 | int custom_profile = 0; // custom profile loaded |
398 | int arg_noprofile = 0; // use generic.profile if none other found/specified | 398 | int arg_noprofile = 0; // use generic.profile if none other found/specified |
399 | #ifdef HAVE_SECCOMP | ||
399 | int highest_errno = errno_highest_nr(); | 400 | int highest_errno = errno_highest_nr(); |
401 | #endif | ||
400 | 402 | ||
401 | // check if we already have a sandbox running | 403 | // check if we already have a sandbox running |
402 | int rv = check_kernel_procs(); | 404 | int rv = check_kernel_procs(); |
@@ -1366,11 +1368,13 @@ int main(int argc, char **argv) { | |||
1366 | waitpid(child, NULL, 0); | 1368 | waitpid(child, NULL, 0); |
1367 | 1369 | ||
1368 | // free globals | 1370 | // free globals |
1371 | #ifdef HAVE_SECCOMP | ||
1369 | if (arg_seccomp_list_errno) { | 1372 | if (arg_seccomp_list_errno) { |
1370 | for (i = 0; i < highest_errno; i++) | 1373 | for (i = 0; i < highest_errno; i++) |
1371 | free(arg_seccomp_list_errno[i]); | 1374 | free(arg_seccomp_list_errno[i]); |
1372 | free(arg_seccomp_list_errno); | 1375 | free(arg_seccomp_list_errno); |
1373 | } | 1376 | } |
1377 | #endif | ||
1374 | 1378 | ||
1375 | myexit(0); | 1379 | myexit(0); |
1376 | 1380 | ||