rpms/ocaml-omake/devel ocaml-omake-0.9.8.5-free-buffer.patch, NONE, 1.1 ocaml-omake.spec, 1.3, 1.4

Richard W.M. Jones rjones at fedoraproject.org
Fri Feb 6 11:29:16 UTC 2009


Author: rjones

Update of /cvs/pkgs/rpms/ocaml-omake/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv23442

Modified Files:
	ocaml-omake.spec 
Added Files:
	ocaml-omake-0.9.8.5-free-buffer.patch 
Log Message:
* Fri Feb  6 2009 Richard W.M. Jones <rjones at redhat.com> - 0.9.8.5-5
- Patch for "attempt to free a non-heap object" (Jakub Jelinek).


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

--- NEW FILE ocaml-omake-0.9.8.5-free-buffer.patch ---
diff -ur omake-0.9.8.5.orig/src/clib/lm_printf.c omake-0.9.8.5/src/clib/lm_printf.c
--- omake-0.9.8.5.orig/src/clib/lm_printf.c	2007-07-15 18:55:23.000000000 +0100
+++ omake-0.9.8.5/src/clib/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;
 }
 


Index: ocaml-omake.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ocaml-omake/devel/ocaml-omake.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ocaml-omake.spec	5 Dec 2008 20:22:56 -0000	1.3
+++ ocaml-omake.spec	6 Feb 2009 11:28:45 -0000	1.4
@@ -2,7 +2,7 @@
 
 Name:           ocaml-omake
 Version:        0.9.8.5
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        OCaml build system with automated dependency analysis
 
 Group:          Development/Tools
@@ -13,6 +13,7 @@
 
 Patch0:         ocaml-omake-debian-stdin-stdout-fix.patch
 Patch1:         ocaml-omake-0.9.8.5-no-sync.patch
+Patch2:         ocaml-omake-0.9.8.5-free-buffer.patch
 
 BuildRequires:  ocaml >= 3.10.2-2
 BuildRequires:  ocaml-findlib-devel
@@ -51,6 +52,7 @@
 %setup -q -n omake-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 
 %build
@@ -86,6 +88,9 @@
 
 
 %changelog
+* Fri Feb  6 2009 Richard W.M. Jones <rjones at redhat.com> - 0.9.8.5-5
+- Patch for "attempt to free a non-heap object" (Jakub Jelinek).
+
 * Fri Dec  5 2008 Richard W.M. Jones <rjones at redhat.com> - 0.9.8.5-4
 - Rebuild for OCaml 3.11.0.
 




More information about the Fedora-ocaml-list mailing list