diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-08-14 14:20:03 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-08-14 14:20:03 +0000 |
commit | 3454319c17d817a0eba289158493d4066d57cdbb (patch) | |
tree | b3c10d29bb12ffa477656688fbe4ebb9f77b5657 /lib | |
parent | 02c78ecf8134fc9961efd3563970672858d503fd (diff) |
prevent memory leak when going out of memory
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |