fixed some more memory leaks
[strongswan.git] / src / libimcv / plugins / imc_attestation / imc_attestation_process.c
index 0e37a5f..34548f8 100644 (file)
@@ -377,12 +377,10 @@ bool imc_attestation_process(pa_tnc_attr_t *attr, linked_list_t *attr_list,
                                                                  "support sub component measurements");
                                        return FALSE;
                                }
-                               name = name->clone(name);
                                comp = pts_components->create(pts_components, name);
                                if (!comp)
                                {
                                        DBG2(DBG_IMC, "    not registered: no evidence provided");
-                                       name->destroy(name);
                                        continue;
                                }