openssl: fix memory leak

Reported-By: ASPj
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>