diff options
author | Karel Zak | 2011-03-28 23:28:45 +0200 |
---|---|---|
committer | Karel Zak | 2011-03-28 23:28:45 +0200 |
commit | 7cf389f735656ed9ee2dc2b6d2c61427a80ee796 (patch) | |
tree | 887ee0bf61068f3c523724849585ab5c8d05ef25 /shlibs/mount | |
parent | libmount: create a default lock for mtab update (diff) | |
download | kernel-qcow2-util-linux-7cf389f735656ed9ee2dc2b6d2c61427a80ee796.tar.gz kernel-qcow2-util-linux-7cf389f735656ed9ee2dc2b6d2c61427a80ee796.tar.xz kernel-qcow2-util-linux-7cf389f735656ed9ee2dc2b6d2c61427a80ee796.zip |
libmount: fix leak in sample program
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount')
-rw-r--r-- | shlibs/mount/samples/mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shlibs/mount/samples/mount.c b/shlibs/mount/samples/mount.c index d7c281fcc..dd8e6c15c 100644 --- a/shlibs/mount/samples/mount.c +++ b/shlibs/mount/samples/mount.c @@ -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; |