diff --git a/src/Http.c b/src/Http.c index 3572c66..6bbeacb 100644 --- a/src/Http.c +++ b/src/Http.c @@ -621,7 +621,7 @@ HttpParseHeaders(Stream * fp) strncpy(headerValue, headerPtr, len); - HashMapSet(headers, headerKey, headerValue); + Free(HashMapSet(headers, headerKey, headerValue)); Free(headerKey); } diff --git a/src/Tls/TlsOpenSSL.c b/src/Tls/TlsOpenSSL.c index a956d2a..cf07ce0 100644 --- a/src/Tls/TlsOpenSSL.c +++ b/src/Tls/TlsOpenSSL.c @@ -81,7 +81,7 @@ TlsInitClient(int fd, const char *serverName) cookie->method = TLS_client_method(); cookie->ctx = SSL_CTX_new(cookie->method); - coolie->fd = fd; + cookie->fd = fd; if (!cookie->ctx) { goto error;