From: Marcel Poul Date: Sat, 10 Nov 2012 16:56:36 +0000 (+0000) Subject: It is always a bad idea to free pointer got through the API X-Git-Tag: emi-canl-c_R_2_0_2_1~9 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=14f0ca5fb6ec6667d188be2f2eb196a68a058059;p=jra1mw.git It is always a bad idea to free pointer got through the API --- diff --git a/emi.canl.canl-c/src/canl_cred.c b/emi.canl.canl-c/src/canl_cred.c index 3a5ab8d..83d4330 100644 --- a/emi.canl.canl-c/src/canl_cred.c +++ b/emi.canl.canl-c/src/canl_cred.c @@ -558,7 +558,6 @@ canl_cred_save_cert(canl_ctx ctx, canl_cred cred, X509 ** cert) " handler"); if (*cert) { - X509_free(*cert); *cert = NULL; }