confile: cleanup clr_config_seccomp_notify_cookie()

parent 78311182
......@@ -4467,11 +4467,10 @@ static inline int clr_config_seccomp_notify_cookie(const char *key,
struct lxc_conf *c, void *data)
{
#ifdef HAVE_SECCOMP_NOTIFY
free(c->seccomp.notifier.cookie);
c->seccomp.notifier.cookie = NULL;
free_disarm(c->seccomp.notifier.cookie);
return 0;
#else
return ret_set_errno(-1, ENOSYS);
return ret_errno(ENOSYS);
#endif
}
......
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