diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-11-23 18:08:35 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-11-23 18:08:35 +0300 |
commit | 54cd6ac43708793ee7e03a2ac1038fd86e045030 (patch) | |
tree | 4933c452b712c385804661569b25d8ca89d4320d | |
parent | add9d89d3b3b5be84b35ef85d490a1b2b34bca7f (diff) | |
download | libmicrohttpd-54cd6ac43708793ee7e03a2ac1038fd86e045030.tar.gz libmicrohttpd-54cd6ac43708793ee7e03a2ac1038fd86e045030.zip |
Improved doxy for MHD_free() and MHD_digest_auth_get_username()
-rw-r--r-- | src/include/microhttpd.h | 1 | ||||
-rw-r--r-- | src/microhttpd/digestauth.c | 1 | ||||
-rw-r--r-- | src/microhttpd/memorypool.c | 3 |
3 files changed, 4 insertions, 1 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 6b749477..e7d8bf52 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -3117,6 +3117,7 @@ MHD_digest_auth_get_username (struct MHD_Connection *connection); | |||
3117 | * Free the memory given by @a ptr. Calls "free(ptr)". This function | 3117 | * Free the memory given by @a ptr. Calls "free(ptr)". This function |
3118 | * should be used to free the username returned by | 3118 | * should be used to free the username returned by |
3119 | * #MHD_digest_auth_get_username(). | 3119 | * #MHD_digest_auth_get_username(). |
3120 | * @note Since v0.9.56 | ||
3120 | * | 3121 | * |
3121 | * @param ptr pointer to free. | 3122 | * @param ptr pointer to free. |
3122 | */ | 3123 | */ |
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c index ace3cdc2..509652e8 100644 --- a/src/microhttpd/digestauth.c +++ b/src/microhttpd/digestauth.c | |||
@@ -462,6 +462,7 @@ check_nonce_nc (struct MHD_Connection *connection, | |||
462 | * @param connection The MHD connection structure | 462 | * @param connection The MHD connection structure |
463 | * @return NULL if no username could be found, a pointer | 463 | * @return NULL if no username could be found, a pointer |
464 | * to the username if found | 464 | * to the username if found |
465 | * @warning Returned value must be freed by #MHD_free(). | ||
465 | * @ingroup authentication | 466 | * @ingroup authentication |
466 | */ | 467 | */ |
467 | char * | 468 | char * |
diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c index 163aa4e3..bda45e1e 100644 --- a/src/microhttpd/memorypool.c +++ b/src/microhttpd/memorypool.c | |||
@@ -81,10 +81,11 @@ struct MemoryPool | |||
81 | * Free the memory given by @a ptr. Calls "free(ptr)". This function | 81 | * Free the memory given by @a ptr. Calls "free(ptr)". This function |
82 | * should be used to free the username returned by | 82 | * should be used to free the username returned by |
83 | * #MHD_digest_auth_get_username(). | 83 | * #MHD_digest_auth_get_username(). |
84 | * @note Since v0.9.56 | ||
84 | * | 85 | * |
85 | * @param ptr pointer to free. | 86 | * @param ptr pointer to free. |
86 | */ | 87 | */ |
87 | void | 88 | _MHD_EXTERN void |
88 | MHD_free (void *ptr) | 89 | MHD_free (void *ptr) |
89 | { | 90 | { |
90 | free (ptr); | 91 | free (ptr); |