Przeglądaj źródła

add MHD_free(), actual 'code'

Christian Grothoff 8 lat temu
rodzic
commit
3de0ceb242
1 zmienionych plików z 14 dodań i 0 usunięć
  1. 14 0
      src/microhttpd/memorypool.c

+ 14 - 0
src/microhttpd/memorypool.c

@@ -77,6 +77,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.
  *