mirror of
https://github.com/lxsang/ant-http
synced 2024-11-20 02:08:21 +01:00
fix memory leak
This commit is contained in:
parent
b14aaa831d
commit
a3b9970c36
@ -591,7 +591,9 @@ dictionary decode_request(void* client,const char* method, char* url)
|
|||||||
// decide what to do with the data
|
// decide what to do with the data
|
||||||
if(strstr(ctype,FORM_URL_ENCODE) > 0)
|
if(strstr(ctype,FORM_URL_ENCODE) > 0)
|
||||||
{
|
{
|
||||||
decode_url_request(post_data_decode(client,clen), request);
|
char* pquery = post_data_decode(client,clen);
|
||||||
|
decode_url_request(pquery, request);
|
||||||
|
free(pquery);
|
||||||
} else if(strstr(ctype,FORM_MULTI_PART)> 0)
|
} else if(strstr(ctype,FORM_MULTI_PART)> 0)
|
||||||
{
|
{
|
||||||
//printf("Multi part form : %s\n", ctype);
|
//printf("Multi part form : %s\n", ctype);
|
||||||
|
Loading…
Reference in New Issue
Block a user