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

index 8416e6a712b89d04fb4989f446080f0dbd3c52a4..16310a5a0a39d8f50db553061a6eef46c3fdd663 100644 (file)
@@ -4716,11 +4716,8 @@ static inline int clr_config_rootfs_mount(const char *key, struct lxc_conf *c,
 static inline int clr_config_rootfs_options(const char *key, struct lxc_conf *c,
                                            void *data)
 {
-       free(c->rootfs.options);
-       c->rootfs.options = NULL;
-
-       free(c->rootfs.data);
-       c->rootfs.data = NULL;
+       free_disarm(c->rootfs.options);
+       free_disarm(c->rootfs.data);
 
        return 0;
 }