From: Petr Uzel Date: Wed, 30 Mar 2011 22:05:01 +0000 (+0200) Subject: libmount: plug memory leak in sample program X-Git-Tag: v2.20-rc1~407 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b192b7b9a6b2e52fd266315cf13d04d2658e8133;p=thirdparty%2Futil-linux.git libmount: plug memory leak in sample program Signed-off-by: Petr Uzel Signed-off-by: Karel Zak --- diff --git a/shlibs/mount/samples/mount.c b/shlibs/mount/samples/mount.c index dd8e6c15c3..0a3c251bd4 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; }