Add nghttp2_free()

This commit is contained in:
Tatsuhiro Tsujikawa 2013-12-14 23:49:16 +09:00
parent bc7473182c
commit 65e54ca7b0
2 changed files with 13 additions and 0 deletions

View File

@ -276,3 +276,8 @@ const char* nghttp2_strerror(int error_code)
return "Unknown error code";
}
}
void nghttp2_free(void *ptr)
{
free(ptr);
}

View File

@ -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 */