From: Richard Jones Date: Tue, 20 Oct 2009 09:19:21 +0000 (+0100) Subject: guestfs_find: Fix memory leak of sysrootdir. X-Git-Tag: 1.0.74~2 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=cefc644d58786b73b2baaa2c2912da2738d24511;p=libguestfs.git guestfs_find: Fix memory leak of sysrootdir. --- 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);