libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 54cd6ac43708793ee7e03a2ac1038fd86e045030
parent add9d89d3b3b5be84b35ef85d490a1b2b34bca7f
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu, 23 Nov 2017 18:08:35 +0300

Improved doxy for MHD_free() and MHD_digest_auth_get_username()

Diffstat:
Msrc/include/microhttpd.h | 1+
Msrc/microhttpd/digestauth.c | 1+
Msrc/microhttpd/memorypool.c | 3++-
3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h @@ -3117,6 +3117,7 @@ MHD_digest_auth_get_username (struct MHD_Connection *connection); * Free the memory given by @a ptr. Calls "free(ptr)". This function * should be used to free the username returned by * #MHD_digest_auth_get_username(). + * @note Since v0.9.56 * * @param ptr pointer to free. */ diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c @@ -462,6 +462,7 @@ check_nonce_nc (struct MHD_Connection *connection, * @param connection The MHD connection structure * @return NULL if no username could be found, a pointer * to the username if found + * @warning Returned value must be freed by #MHD_free(). * @ingroup authentication */ char * diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c @@ -81,10 +81,11 @@ struct MemoryPool * Free the memory given by @a ptr. Calls "free(ptr)". This function * should be used to free the username returned by * #MHD_digest_auth_get_username(). + * @note Since v0.9.56 * * @param ptr pointer to free. */ -void +_MHD_EXTERN void MHD_free (void *ptr) { free (ptr);