1
0
mirror of https://github.com/lxsang/ant-http synced 2024-07-05 22:19:47 +02:00

free memory

This commit is contained in:
Xuan Sang LE 2018-09-05 19:13:03 +02:00
parent cdd4c0fa35
commit a8c0a4afe9

View File

@ -583,6 +583,8 @@ dictionary decode_request(void* client,const char* method, char* url)
LOG("Bad request\n"); LOG("Bad request\n");
if(ctype) free(ctype); if(ctype) free(ctype);
if(cookie) freedict(cookie); if(cookie) freedict(cookie);
if(query)
free(query);
free(xheader); free(xheader);
return NULL; return NULL;
} }