gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] branch master updated (330a4055 -> 6c4c13ef


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] branch master updated (330a4055 -> 6c4c13ef)
Date: Mon, 09 Oct 2017 22:43:05 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a change to branch master
in repository libmicrohttpd.

    from 330a4055 add MHD_free(), as suggested by Tim on the mailinglist
     new 3de0ceb2 add MHD_free(), actual 'code'
     new 6c4c13ef add MHD_free(), actual 'code' and symbol export

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/include/microhttpd.h    |  2 +-
 src/microhttpd/memorypool.c | 14 ++++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index c2a9d32b..f797c01d 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -3120,7 +3120,7 @@ MHD_digest_auth_get_username (struct MHD_Connection 
*connection);
  *
  * @param ptr pointer to free.
  */
-void
+_MHD_EXTERN void
 MHD_free (void *ptr);
 
 
diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c
index 1290408b..163aa4e3 100644
--- 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

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]