1
0
mirror of https://github.com/lxsang/ant-http synced 2024-07-01 12:59:47 +02:00

fix memory leak

This commit is contained in:
Xuan Sang LE 2018-09-11 11:06:01 +02:00
parent b14aaa831d
commit a3b9970c36

View File

@ -591,7 +591,9 @@ dictionary decode_request(void* client,const char* method, char* url)
// decide what to do with the data
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)
{
//printf("Multi part form : %s\n", ctype);