From b192b7b9a6b2e52fd266315cf13d04d2658e8133 Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Thu, 31 Mar 2011 00:05:01 +0200 Subject: libmount: plug memory leak in sample program Signed-off-by: Petr Uzel Signed-off-by: Karel Zak --- shlibs/mount/samples/mount.c | 1 + 1 file changed, 1 insertion(+) (limited to 'shlibs/mount/samples/mount.c') diff --git a/shlibs/mount/samples/mount.c b/shlibs/mount/samples/mount.c index dd8e6c15c..0a3c251bd 100644 --- a/shlibs/mount/samples/mount.c +++ b/shlibs/mount/samples/mount.c @@ -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; } -- cgit v1.2.3-55-g7522