From cefc644d58786b73b2baaa2c2912da2738d24511 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Tue, 20 Oct 2009 10:19:21 +0100 Subject: [PATCH] guestfs_find: Fix memory leak of sysrootdir. --- daemon/find.c | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/find.c b/daemon/find.c index b659eb6..c5d26d7 100644 --- a/daemon/find.c +++ b/daemon/find.c @@ -85,6 +85,7 @@ do_find (const char *dir) free (sysrootdir); return NULL; } + free (sysrootdir); if (verbose) fprintf (stderr, "%s\n", cmd); -- 1.8.3.1