Add nghttp2_free()
This commit is contained in:
parent
bc7473182c
commit
65e54ca7b0
|
@ -276,3 +276,8 @@ const char* nghttp2_strerror(int 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);
|
|||
*/
|
||||
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 */
|
||||
|
|
Loading…
Reference in New Issue