X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=doc%2Fref_string.xml;h=235950a8fa1cc34ce2715a1028850d24fd86e01c;hb=27073cc090c29aa5dcf9ed9becdf3e73b937b0bb;hp=d488e12b38c7e76cedb4d6453760d673be7cb227;hpb=e23ce13827d1948c2e46f2b36a4a22127615844a;p=uffi.git diff --git a/doc/ref_string.xml b/doc/ref_string.xml index d488e12..235950a 100644 --- a/doc/ref_string.xml +++ b/doc/ref_string.xml @@ -1,7 +1,7 @@ + %myents; ]> @@ -52,7 +52,9 @@ (result-code (c-gethostname name 256)) (hostname (when (zerop result-code) (uffi:convert-from-foreign-string name)))) - (uffi:free-foreign-object name) + ;; UFFI does not yet provide a universal way to free + ;; memory allocated by C's malloc. At this point, a program + ;; needs to call C's free function to free such memory. (unless (zerop result-code) (error "gethostname() failed."))))