conf: cleanup macros mount_entry_on_generic

parent 7a76eeaa
...@@ -2187,9 +2187,9 @@ static inline int mount_entry_on_generic(struct mntent *mntent, ...@@ -2187,9 +2187,9 @@ static inline int mount_entry_on_generic(struct mntent *mntent,
const char *lxc_name, const char *lxc_name,
const char *lxc_path) const char *lxc_path)
{ {
__do_free char *mntdata = NULL;
int ret; int ret;
unsigned long mntflags; unsigned long mntflags;
char *mntdata;
bool dev, optional, relative; bool dev, optional, relative;
unsigned long pflags = 0; unsigned long pflags = 0;
char *rootfs_path = NULL; char *rootfs_path = NULL;
...@@ -2222,7 +2222,6 @@ static inline int mount_entry_on_generic(struct mntent *mntent, ...@@ -2222,7 +2222,6 @@ static inline int mount_entry_on_generic(struct mntent *mntent,
ret = mount_entry(mntent->mnt_fsname, path, mntent->mnt_type, mntflags, ret = mount_entry(mntent->mnt_fsname, path, mntent->mnt_type, mntflags,
pflags, mntdata, optional, dev, relative, rootfs_path); pflags, mntdata, optional, dev, relative, rootfs_path);
free(mntdata);
return ret; return ret;
} }
......
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