moved measurement and metadata flags to product_file table
[strongswan.git] / src / libimcv / plugins / imv_attestation / attest.c
index aa8d1f7..6385e56 100644 (file)
@@ -87,6 +87,9 @@ attest_db_t *attest;
 static void cleanup(void)
 {
        attest->destroy(attest);
+       libpts_deinit();
+       libimcv_deinit();
+       closelog();
 }
 
 static void do_args(int argc, char *argv[])
@@ -296,10 +299,6 @@ int main(int argc, char *argv[])
 
        do_args(argc, argv);
 
-       libpts_deinit();
-       libimcv_deinit();
-       closelog();
-
        exit(EXIT_SUCCESS);
 }