findmnt: fix leak
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
6ea1bdd32c
commit
d783ee0be0
|
@ -311,7 +311,7 @@ static const char *get_data(struct libmnt_fs *fs, int num)
|
|||
str = mnt_fs_get_fstype(fs);
|
||||
break;
|
||||
case COL_OPTIONS:
|
||||
str = mnt_fs_strdup_options(fs);
|
||||
str = mnt_fs_get_options(fs);
|
||||
break;
|
||||
case COL_VFS_OPTIONS:
|
||||
str = mnt_fs_get_vfs_options(fs);
|
||||
|
|
Loading…
Reference in New Issue