valgrind memory leaks
git-svn-id: svn://10.0.0.236/trunk@168302 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
b8a83edc55
commit
1e8097d097
@ -277,6 +277,7 @@ main(int argc, char *argv[])
|
||||
char *ampersand;
|
||||
App *app;
|
||||
unsigned char *equals;
|
||||
HTTPNameValue *h;
|
||||
HTTPNameValue *headers;
|
||||
char *name;
|
||||
unsigned char *newURL;
|
||||
@ -435,6 +436,14 @@ main(int argc, char *argv[])
|
||||
return 1;
|
||||
}
|
||||
httpFree(httpProcess(app, u, version, headers));
|
||||
h = headers;
|
||||
while (h->name)
|
||||
{
|
||||
free(h->name);
|
||||
free(h->value);
|
||||
h++;
|
||||
}
|
||||
free(headers);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user