diff options
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -214,6 +214,8 @@ CURLcode Curl_close(struct SessionHandle *data) { struct Curl_multi *m = data->multi; + data->magic = 0; /* force a clear */ + if(m) /* This handle is still part of a multi handle, take care of this first and detach this handle from there. */ @@ -374,6 +376,8 @@ CURLcode Curl_open(struct SessionHandle **curl) /* this is a very serious error */ return CURLE_OUT_OF_MEMORY; + data->magic = CURLEASY_MAGIC_NUMBER; + #ifdef USE_ARES if(ARES_SUCCESS != ares_init(&data->state.areschannel)) { free(data); |