Commit 65e54ca7 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Add nghttp2_free()

parent bc747318
...@@ -276,3 +276,8 @@ const char* nghttp2_strerror(int error_code) ...@@ -276,3 +276,8 @@ const char* nghttp2_strerror(int error_code)
return "Unknown error code"; return "Unknown error code";
} }
} }
void nghttp2_free(void *ptr)
{
free(ptr);
}
...@@ -133,4 +133,12 @@ int nghttp2_check_header_name(const uint8_t *name, size_t len); ...@@ -133,4 +133,12 @@ int nghttp2_check_header_name(const uint8_t *name, size_t len);
*/ */
int nghttp2_check_header_name_nocase(const uint8_t *name, size_t len); int nghttp2_check_header_name_nocase(const uint8_t *name, size_t len);
/*
* Deallocates memory space pointed by |ptr|. This function exists for
* the application to free the memory space allocated by the library
* functions. Currently this function is hidden from the public API,
* but may be exposed as public API.
*/
void nghttp2_free(void *ptr);
#endif /* NGHTTP2_HELPER_H */ #endif /* NGHTTP2_HELPER_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment