X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=doc%2Fcrypto%2Fbuffer.pod;h=781f5b11ee546efdaa2d02ae944a02ba2461d97d;hb=847e551f39c2a218e36f95d93d45b72ec4446a2a;hp=7088f51bc4311718e0f8b570a979beaef3e8b26a;hpb=4d524e10b4853436a1bfbc83822c5d0e87d64fbd;p=oweals%2Fopenssl.git diff --git a/doc/crypto/buffer.pod b/doc/crypto/buffer.pod index 7088f51bc4..781f5b11ee 100644 --- a/doc/crypto/buffer.pod +++ b/doc/crypto/buffer.pod @@ -46,11 +46,11 @@ size. BUF_strdup() copies a null terminated string into a block of allocated memory and returns a pointer to the allocated block. -Unlike the standard C library strdup() this function uses Malloc() and so +Unlike the standard C library strdup() this function uses OPENSSL_malloc() and so should be used in preference to the standard library strdup() because it can be used for memory leak checking or replacing the malloc() function. -The memory allocated from BUF_strdup() should be freed up using the Free() +The memory allocated from BUF_strdup() should be freed up using the OPENSSL_free() function. =head1 RETURN VALUES @@ -68,6 +68,6 @@ L =head1 HISTORY BUF_MEM_new(), BUF_MEM_free() and BUF_MEM_grow() are available in all -versions of SSLeay and OpenSSL. BUF_strdup() was addded in SSLeay 0.8. +versions of SSLeay and OpenSSL. BUF_strdup() was added in SSLeay 0.8. =cut