check if pts_credmgr exists
[strongswan.git] / src / libimcv / plugins / imv_attestation / imv_attestation.c
index 27c20d5..25684ea 100644 (file)
@@ -665,7 +665,7 @@ TNC_Result TNC_IMV_Terminate(TNC_IMVID imv_id)
                pts_creds->destroy(pts_creds);
        }
        DESTROY_IF(pts_db);
-       pts_credmgr->destroy(pts_credmgr);
+       DESTROY_IF(pts_credmgr);
        imv_attestation->destroy(imv_attestation);
        imv_attestation = NULL;