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:
Petr Uzel 2011-03-31 00:05:01 +02:00 committed by Karel Zak
parent 6ad929bbac
commit b192b7b9a6
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}