]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: cleanup clr_config_seccomp_notify_cookie()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 16:25:48 +0000 (17:25 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 17:44:32 +0000 (18:44 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index 80a0916e0bb76efb43cbe1c2647eb384eac4fbe4..8bffa7e8af29125c671049d363da381a51bbd6a3 100644 (file)
@@ -4813,11 +4813,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
 }