diff options
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r-- | src/include/microhttpd.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 921ab56b..2f3a99a9 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -3624,10 +3624,12 @@ enum MHD_ResponseMemoryMode | |||
3624 | * Buffer is heap-allocated with `malloc()` (or equivalent) and | 3624 | * Buffer is heap-allocated with `malloc()` (or equivalent) and |
3625 | * should be freed by MHD after processing the response has | 3625 | * should be freed by MHD after processing the response has |
3626 | * concluded (response reference counter reaches zero). | 3626 | * concluded (response reference counter reaches zero). |
3627 | * @warning Make sure that your application and MHD are using the same | 3627 | * The more portable way to automatically free the buffer is function |
3628 | * C-runtime library (especially important for W32). if in doubt, | 3628 | * MHD_create_response_from_buffer_with_free_callback() with '&free' as |
3629 | * use function MHD_create_response_from_buffer_with_free_callback() | 3629 | * crfc parameter as it does not require to use the same runtime library. |
3630 | * with '&free' as crfc parameter. | 3630 | * @warning It is critical to make sure that the same C-runtime library |
3631 | * is used by both application and MHD (especially | ||
3632 | * important for W32). | ||
3631 | * @ingroup response | 3633 | * @ingroup response |
3632 | */ | 3634 | */ |
3633 | MHD_RESPMEM_MUST_FREE, | 3635 | MHD_RESPMEM_MUST_FREE, |