diff options
author | 2014-07-08 20:26:05 +0000 | |
---|---|---|
committer | 2014-07-08 20:26:05 +0000 | |
commit | 946359ff9964967c18a0ce59a1a23c95ea12938e (patch) | |
tree | 5357b34719f96e105fd6a3441993d5e0d2d35845 /lib/libssl/src/doc | |
parent | Match the current state of the code. (diff) | |
download | wireguard-openbsd-946359ff9964967c18a0ce59a1a23c95ea12938e.tar.xz wireguard-openbsd-946359ff9964967c18a0ce59a1a23c95ea12938e.zip |
Do not suggest using BUF_strdup() preferably to strdup() for fallacious
reasons.
Diffstat (limited to 'lib/libssl/src/doc')
-rw-r--r-- | lib/libssl/src/doc/crypto/BUF_MEM_new.pod | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libssl/src/doc/crypto/BUF_MEM_new.pod b/lib/libssl/src/doc/crypto/BUF_MEM_new.pod index b761859086d..a83f46f8968 100644 --- a/lib/libssl/src/doc/crypto/BUF_MEM_new.pod +++ b/lib/libssl/src/doc/crypto/BUF_MEM_new.pod @@ -45,10 +45,7 @@ B<len>. Any data already in the buffer is preserved if it increases in 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 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. +and returns a pointer to the allocated block. The memory allocated from BUF_strdup() should be freed up using the OPENSSL_free() function. |