mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Fix resource leak.
* src/http.c (parse_strict_transport_security): Freed memory to avoid resource leak. Comply with GNU coding style.
This commit is contained in:
parent
2d2ddb25d8
commit
d080a70a3a
@ -1294,6 +1294,7 @@ parse_strict_transport_security (const char *header, time_t *max_age, bool *incl
|
||||
DEBUGP (("Parsed Strict-Transport-Security max-age = %s, includeSubDomains = %s\n",
|
||||
c_max_age, (is ? "true" : "false")));
|
||||
|
||||
xfree (c_max_age);
|
||||
success = true;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user