diff options
author | Karel Zak | 2012-01-02 14:16:15 +0100 |
---|---|---|
committer | Karel Zak | 2012-01-02 14:16:15 +0100 |
commit | 16b8db49fee91417aad09aaa98edd3acd9e70754 (patch) | |
tree | bd94b3b002967ce63d8e375a8ad5a39542e08b11 /libmount/src/fs.c | |
parent | libmount: always trust the source of a pseudofs (diff) | |
download | kernel-qcow2-util-linux-16b8db49fee91417aad09aaa98edd3acd9e70754.tar.gz kernel-qcow2-util-linux-16b8db49fee91417aad09aaa98edd3acd9e70754.tar.xz kernel-qcow2-util-linux-16b8db49fee91417aad09aaa98edd3acd9e70754.zip |
libmount; fix possible mem-leak
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/fs.c')
-rw-r--r-- | libmount/src/fs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libmount/src/fs.c b/libmount/src/fs.c index 26560d161..90f484bec 100644 --- a/libmount/src/fs.c +++ b/libmount/src/fs.c @@ -1081,7 +1081,8 @@ int mnt_fs_get_attribute(struct libmnt_fs *fs, const char *name, * * Returns: 1 if @fs target is equal to @target else 0. */ -int mnt_fs_match_target(struct libmnt_fs *fs, const char *target, struct libmnt_cache *cache) +int mnt_fs_match_target(struct libmnt_fs *fs, const char *target, + struct libmnt_cache *cache) { int rc = 0; @@ -1127,7 +1128,8 @@ int mnt_fs_match_target(struct libmnt_fs *fs, const char *target, struct libmnt_ * * Returns: 1 if @fs source is equal to @source else 0. */ -int mnt_fs_match_source(struct libmnt_fs *fs, const char *source, struct libmnt_cache *cache) +int mnt_fs_match_source(struct libmnt_fs *fs, const char *source, + struct libmnt_cache *cache) { char *cn; const char *src, *t, *v; |