guestfs_find: Fix memory leak of sysrootdir.
authorRichard Jones <rjones@redhat.com>
Tue, 20 Oct 2009 09:19:21 +0000 (10:19 +0100)
committerRichard Jones <rjones@redhat.com>
Tue, 20 Oct 2009 09:31:55 +0000 (10:31 +0100)
daemon/find.c

index b659eb6..c5d26d7 100644 (file)
@@ -85,6 +85,7 @@ do_find (const char *dir)
     free (sysrootdir);
     return NULL;
   }
+  free (sysrootdir);
 
   if (verbose)
     fprintf (stderr, "%s\n", cmd);