on master help sign in
Add warning.
commitcf7501d6f9f710b484fec55ab352ddf1daf2209f authorMatus Tejiscak <ziman@functor.sk> dateSun 24 Jan 2016, 19:56 (11 years ago) parentb63d554
1 file changed+4−4
docs/reference/misc.rst+4−4
docs/reference/misc.rst+4−4
@@ -170,10 +170,10 @@ Usage from C code
170170 about its particular value. However, keep in mind
171171 that it must not break Idris's referential transparency.
172172
173−* If you call cdata_allocate or cdata_manage, the resulting
174− ``CData`` object *must* be returned from your FFI function so
175− that it is inserted in the C heap. Otherwise the memory
176− will be leaked.
173+* **WARNING!** If you call cdata_allocate or cdata_manage,
174+ the resulting ``CData`` object *must* be returned from your
175+ FFI function so that it is inserted in the C heap by the RTS.
176+ Otherwise the memory will be leaked.
177177
178178.. code:: idris
179179