FIX: bad memory free in sslUpgrade for est