Commit ed783006 authored by Daniel Gustafsson's avatar Daniel Gustafsson
Browse files

darwinssl: Fix realloc memleak



The reallocation was using the input pointer for the return value, which
leads to a memory leak on reallication failure. Fix by instead use the
safe internal API call Curl_saferealloc().

Closes #3005
Reviewed-by: default avatarDaniel Stenberg <daniel@haxx.se>
Reviewed-by: default avatarNick Zitzmann <nickzman@gmail.com>
parent 23524bf8
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment