]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
findmnt: fix leak
authorKarel Zak <kzak@redhat.com>
Tue, 10 May 2011 08:39:14 +0000 (10:39 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 10 May 2011 08:39:14 +0000 (10:39 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/findmnt.c

index c3c9c30080d0e16f837280a08a72d534717e86ae..338da112dc613e2cf99f10d0d5d5159608cbd21d 100644 (file)
@@ -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);