diff options
author | Karel Zak | 2015-02-03 14:05:05 +0100 |
---|---|---|
committer | Karel Zak | 2015-02-03 14:05:05 +0100 |
commit | 0c8cd4ba7a1a85c437ef63f462d20f0b944778d0 (patch) | |
tree | ac6b90c682314a3b1193c86d4f40e8c257f03be1 /libmount/src/context.c | |
parent | libfdisk: grain is in bytes, fix previous patches (diff) | |
download | kernel-qcow2-util-linux-0c8cd4ba7a1a85c437ef63f462d20f0b944778d0.tar.gz kernel-qcow2-util-linux-0c8cd4ba7a1a85c437ef63f462d20f0b944778d0.tar.xz kernel-qcow2-util-linux-0c8cd4ba7a1a85c437ef63f462d20f0b944778d0.zip |
libmount: fix type pointer usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/context.c')
-rw-r--r-- | libmount/src/context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmount/src/context.c b/libmount/src/context.c index dff7a47fd..c902f396e 100644 --- a/libmount/src/context.c +++ b/libmount/src/context.c @@ -1718,8 +1718,8 @@ int mnt_context_guess_fstype(struct libmnt_context *cxt) rc = mnt_context_guess_srcpath_fstype(cxt, &type); if (rc == 0 && type) __mnt_fs_set_fstype_ptr(cxt->fs, type); - - free(type); + else + free(type); done: DBG(CXT, ul_debugobj(cxt, "FS type: %s [rc=%d]", mnt_fs_get_fstype(cxt->fs), rc)); |