lib/fetch: fix CID 284966 in a different way.
Hopefully this fixes it for real.
This commit is contained in:
@ -571,7 +571,12 @@ ouch:
|
||||
void
|
||||
fetchFreeURL(struct url *u)
|
||||
{
|
||||
free(u->doc);
|
||||
if (!u) {
|
||||
return;
|
||||
}
|
||||
if (u->doc) {
|
||||
free(u->doc);
|
||||
}
|
||||
free(u);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user