Displaying 1 result from an estimated 1 matches for "265f0a475".
2018 May 03
1
[PATCH] daemon: fix memory allocation and leaks in OCaml stubs
...ly pointer; also, set the list size only after the array
is allocated, to not confuse the XDR routines.
---
generator/daemon.ml | 41 +++++++++++++++++++++++++----------------
1 file changed, 25 insertions(+), 16 deletions(-)
diff --git a/generator/daemon.ml b/generator/daemon.ml
index 559ed6898..265f0a475 100644
--- a/generator/daemon.ml
+++ b/generator/daemon.ml
@@ -605,16 +605,18 @@ let generate_daemon_caml_stubs () =
(* Implement code for returning structs and struct lists. *)
let emit_return_struct typ =
let struc = Structs.lookup_struct typ in
+ let uc_typ = String.uppercase_ascii...