libmount: plug memory leak in sample program
Signed-off-by: Petr Uzel <petr.uzel@suse.cz> Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
6ad929bbac
commit
b192b7b9a6
|
@ -140,6 +140,7 @@ static int print_all(struct libmnt_context *cxt, char *pattern, int show_label)
|
|||
}
|
||||
done:
|
||||
mnt_free_cache(cache);
|
||||
mnt_free_iter(itr);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue