ocaml-omake/ocaml-omake-0.9.8.5-free-buffer.patch

34 lines
929 B
Diff
Raw Normal View History

diff -ur omake-0.9.8.5.orig/src/libmojave-external/cutil/lm_printf.c omake-0.9.8.5/src/libmojave-external/cutil/lm_printf.c
--- omake-0.9.8.5.orig/src/libmojave-external/cutil/lm_printf.c 2007-07-15 18:55:23.000000000 +0100
+++ omake-0.9.8.5/src/libmojave-external/cutil/lm_printf.c 2009-02-06 11:13:42.000000000 +0000
@@ -142,12 +142,12 @@
#endif
if(code < 0) {
if(bufp != buffer)
- free(buffer);
+ free(bufp);
failwith("ml_print_string");
}
v_result = copy_string(bufp);
if(bufp != buffer)
- free(buffer);
+ free(bufp);
return v_result;
}
@@ -190,12 +190,12 @@
#endif
if(code < 0) {
if(bufp != buffer)
- free(buffer);
+ free(bufp);
failwith("ml_print_string");
}
v_result = copy_string(bufp);
if(bufp != buffer)
- free(buffer);
+ free(bufp);
return v_result;
}