result destructor at the wrong level
[strongswan.git] / src / libpts / plugins / imv_attestation / imv_attestation_process.c
index 9af07de..f2aa4ec 100644 (file)
@@ -515,9 +515,9 @@ quote_error:
                                                                                                        IMV_ATTESTATION_STATE_END);
                                                break;
                                        }
-                                       result->destroy(result);
                                }
                                enumerator->destroy(enumerator);
+                               result->destroy(result);
                        }
 
                        if (attr_cast->get_evid_sig(attr_cast, &evid_sig))