aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 76331aac9..588391524 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -321,6 +321,7 @@ CURLcode Curl_open(struct SessionHandle **curl)
malloc(sizeof(struct connectdata *) * data->state.numconnects);
if(!data->state.connects) {
+ free(data->state.headerbuff);
free(data);
return CURLE_OUT_OF_MEMORY;
}