confile: cleanup clr_config_seccomp_notify_cookie()

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