diff options
Diffstat (limited to 'lib/multi.c')
-rw-r--r-- | lib/multi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/multi.c b/lib/multi.c index a91c8d766..b82be6245 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -315,7 +315,8 @@ static void sh_freeentry(void *freethis) { struct Curl_sh_entry *p = (struct Curl_sh_entry *) freethis; - free(p); + if(p) + free(p); } static size_t fd_key_compare(void*k1, size_t k1_len, void*k2, size_t k2_len) |