mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
ocaml: Memory leak: Free roots array along handle close path.
(cherry picked from commit c5dbb1e63a)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user