diff --git a/ocaml/guestfs_c.c b/ocaml/guestfs_c.c index 96e8a35a6..fd5e14ae0 100644 --- a/ocaml/guestfs_c.c +++ b/ocaml/guestfs_c.c @@ -82,6 +82,7 @@ guestfs_finalize (value gv) caml_remove_global_root (roots[i]); free (roots[i]); } + free (roots); caml_remove_global_root (v); free (v);