commit 3de0ceb242d835232bf5bcedde7d2cef2ecff357 parent 330a40552cbd26ebcdf25bf209e12697ac330737 Author: Christian Grothoff <christian@grothoff.org> Date: Mon, 9 Oct 2017 22:42:21 +0200 add MHD_free(), actual 'code' Diffstat:
| M | src/microhttpd/memorypool.c | | | 14 | ++++++++++++++ |
1 file changed, 14 insertions(+), 0 deletions(-)
diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c @@ -78,6 +78,20 @@ 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(). + * + * @param ptr pointer to free. + */ +void +MHD_free (void *ptr) +{ + free (ptr); +} + + +/** * Create a memory pool. * * @param max maximum size of the pool