aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-08-14 14:20:03 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-08-14 14:20:03 +0000
commit3454319c17d817a0eba289158493d4066d57cdbb (patch)
treeb3c10d29bb12ffa477656688fbe4ebb9f77b5657 /lib
parent02c78ecf8134fc9961efd3563970672858d503fd (diff)
prevent memory leak when going out of memory
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;
}