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

index ad02abc89981fe894f6c448a19729a8b512fdc17..ea45fccdc79b08774ef0f56eb6b022d9f57b7a3d 100644 (file)
@@ -4835,8 +4835,7 @@ static inline int clr_config_seccomp_notify_proxy(const char *key,
 static inline int clr_config_seccomp_profile(const char *key,
                                             struct lxc_conf *c, void *data)
 {
-       free(c->seccomp.seccomp);
-       c->seccomp.seccomp = NULL;
+       free_disarm(c->seccomp.seccomp);
        return 0;
 }