It is always a bad idea to free pointer got through the API
authorMarcel Poul <marcel.poul@cern.ch>
Sat, 10 Nov 2012 16:56:36 +0000 (16:56 +0000)
committerMarcel Poul <marcel.poul@cern.ch>
Sat, 10 Nov 2012 16:56:36 +0000 (16:56 +0000)
emi.canl.canl-c/src/canl_cred.c

index 3a5ab8d..83d4330 100644 (file)
@@ -558,7 +558,6 @@ canl_cred_save_cert(canl_ctx ctx, canl_cred cred, X509 ** cert)
                 " handler");
  
     if (*cert) {
-        X509_free(*cert);
         *cert = NULL;
     }