diff --git a/zathura/main.c b/zathura/main.c index cf0ec23..54842f1 100644 --- a/zathura/main.c +++ b/zathura/main.c @@ -303,24 +303,19 @@ main(int argc, char* argv[]) } else if (g_strcmp0(sandbox, "normal") == 0) { girara_debug("Basic sandbox allowing normal operation."); ret = seccomp_enable_basic_filter(); - if (ret){ - goto free_and_ret; - } } else if (g_strcmp0(sandbox, "strict") == 0) { girara_debug("Strict sandbox preventing write and network access."); ret = seccomp_enable_strict_filter(); - if (ret){ - goto free_and_ret; - } } else { girara_error("Invalid sandbox option"); ret = -1; goto free_and_ret; } - - g_free(sandbox); + if (ret){ + goto free_and_ret; + } #endif