guestfs_find: Fix memory leak of sysrootdir.
[libguestfs.git] / 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);