Avoid leaking headers received from SSL proxy

Fixes part of 7816. Spotted by coverity. Fix on 0.2.2.1-alpha.
This commit is contained in:
Nick Mathewson
2012-12-28 22:44:45 -05:00
parent 4b571d3ab3
commit b509ead20d
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -1607,6 +1607,7 @@ connection_read_https_proxy_response(connection_t *conn)
tor_free(headers);
return -1;
}
tor_free(headers);
if (!reason) reason = tor_strdup("[no reason given]");
if (status_code == 200) {