ocaml: Fix memory leak in bindings for functions that return buffers.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 29 Nov 2011 17:13:17 +0000 (17:13 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 29 Nov 2011 17:13:17 +0000 (17:13 +0000)
commit6bd0eec12f2e39360847bfe7a9f50628cc89ed8e
treef0cf904790c07412d8860f5760958bf7b577046c
parentbcd2dba76efa4da4edb1b04f6348b0a0dfb109c2
ocaml: Fix memory leak in bindings for functions that return buffers.

RBufferOut binding didn't free the buffer after copying it onto
the OCaml heap.

Found by valgrind.
generator/generator_ocaml.ml