gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] 01/02: add MHD_free(), actual 'code'


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 01/02: add MHD_free(), actual 'code'
Date: Mon, 09 Oct 2017 22:43:06 +0200

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

grothoff pushed a commit to branch master
in repository libmicrohttpd.

commit 3de0ceb242d835232bf5bcedde7d2cef2ecff357
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Oct 9 22:42:21 2017 +0200

    add MHD_free(), actual 'code'
---
 src/microhttpd/memorypool.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

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]