567c2d
diff --git a/Bindings/OCaml/brlapi_stubs.c b/Bindings/OCaml/brlapi_stubs.c
567c2d
index 1e66f9e..aabdc14 100644
567c2d
--- a/Bindings/OCaml/brlapi_stubs.c
567c2d
+++ b/Bindings/OCaml/brlapi_stubs.c
567c2d
@@ -145,12 +145,14 @@ CAMLprim value brlapiml_errorCode_of_error(value camlError)
567c2d
 static void raise_brlapi_error(void)
567c2d
 {
567c2d
   static value *exception = NULL;
567c2d
+  CAMLparam0();
567c2d
   CAMLlocal1(res);
567c2d
   if (exception==NULL) exception = caml_named_value("Brlapi_error");
567c2d
   res = caml_alloc(2,0);
567c2d
   Store_field(res, 0, *exception);
567c2d
   Store_field(res, 1, constrCamlError(&brlapi_error));
567c2d
   caml_raise(res);
567c2d
+  CAMLreturn0;
567c2d
 }
567c2d
 
567c2d
 /* Function : raise_brlapi_exception */
567c2d
@@ -159,6 +161,7 @@ static void BRLAPI_STDCALL raise_brlapi_exception(int err, brlapi_packetType_t t
567c2d
 {
567c2d
   static value *exception = NULL;
567c2d
   int i;
567c2d
+  CAMLparam0();
567c2d
   CAMLlocal2(str, res);
567c2d
   str = caml_alloc_string(size);
567c2d
   for (i=0; i
567c2d
@@ -169,6 +172,7 @@ static void BRLAPI_STDCALL raise_brlapi_exception(int err, brlapi_packetType_t t
567c2d
   Store_field(res, 2, caml_copy_int32(type));
567c2d
   Store_field(res, 3, str);
567c2d
   caml_raise(res);
567c2d
+  CAMLreturn0;
567c2d
 }
567c2d
 
567c2d
 /* function packDots */