1
0
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:
Ander Juaristi 2015-08-26 12:35:02 +02:00 committed by Darshit Shah
parent 2d2ddb25d8
commit d080a70a3a

View File

@ -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