]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: fix leak in sample program
authorKarel Zak <kzak@redhat.com>
Mon, 28 Mar 2011 21:28:45 +0000 (23:28 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 28 Mar 2011 21:28:45 +0000 (23:28 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/mount/samples/mount.c

index d7c281fcc6ce4bc91e3154002595c11587333762..dd8e6c15c3d493cefa5e38a3bc37cb57b573d490 100644 (file)
@@ -119,7 +119,7 @@ static int print_all(struct libmnt_context *cxt, char *pattern, int show_label)
        while(mnt_table_next_fs(tb, itr, &fs) == 0) {
                const char *type = mnt_fs_get_fstype(fs);
                const char *src = mnt_fs_get_source(fs);
-               char *optstr = mnt_fs_strdup_options(fs);
+               const char *optstr = mnt_fs_get_options(fs);
 
                if (type && pattern && !mnt_match_fstype(type, pattern))
                        continue;