On Fri, Sep 11, 2009 at 05:50:30PM +0100, Matthew Booth wrote:
+ out = realloc (out, out_len + 1);
+ if (NULL == out) {
+ reply_with_perror ("realloc");
+ return 0;
+ }
Unfortunately this leaves the original buffer [out]
still allocated on the error path.
[...]
As before, this needs tests.
Rich.
--
Richard Jones, Emerging Technologies, Red Hat
http://et.redhat.com/~rjones
Read my programming blog:
http://rwmj.wordpress.com
Fedora now supports 75 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora