mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2025-02-02 15:07:47 -05:00
Memory leaks. Lots of little ones.
svn path=/trunk/httpp/; revision=3275
This commit is contained in:
parent
3379751e19
commit
e1ae0d0ea2
@ -268,7 +268,7 @@ char *httpp_getvar(http_parser_t *parser, char *name)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void httpp_destroy(http_parser_t *parser)
|
||||
void httpp_clear(http_parser_t *parser)
|
||||
{
|
||||
parser->req_type = httpp_req_none;
|
||||
if (parser->uri)
|
||||
@ -278,6 +278,12 @@ void httpp_destroy(http_parser_t *parser)
|
||||
parser->vars = NULL;
|
||||
}
|
||||
|
||||
void httpp_destroy(http_parser_t *parser)
|
||||
{
|
||||
httpp_clear(parser);
|
||||
free(parser);
|
||||
}
|
||||
|
||||
char *_lowercase(char *str)
|
||||
{
|
||||
long i;
|
||||
|
@ -40,6 +40,7 @@ int httpp_parse(http_parser_t *parser, char *http_data, unsigned long len);
|
||||
void httpp_setvar(http_parser_t *parser, char *name, char *value);
|
||||
char *httpp_getvar(http_parser_t *parser, char *name);
|
||||
void httpp_destroy(http_parser_t *parser);
|
||||
void httpp_clear(http_parser_t *parser);
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user