mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
ocaml: Set close-on-exit flag to true in this test so handle is cleaned up.
Otherwise the valgrind test fails since the handle resources are leaked.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
*)
|
||||
|
||||
let () =
|
||||
let g = new Guestfs.guestfs ~environment:false ~close_on_exit:false () in
|
||||
let g = new Guestfs.guestfs ~environment:false ~close_on_exit:true () in
|
||||
g#parse_environment ()
|
||||
|
||||
let () = Gc.compact ()
|
||||
|
||||
Reference in New Issue
Block a user