Added destroy functions for linked lists
authorSansar Choinyambuu <schoinya@hsr.ch>
Wed, 7 Sep 2011 06:50:13 +0000 (08:50 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 8 Sep 2011 10:08:17 +0000 (12:08 +0200)
src/libimcv/plugins/imv_attestation/imv_attestation.c

index 42742ca..2f25cd3 100644 (file)
@@ -564,6 +564,7 @@ TNC_Result TNC_IMV_ReceiveMessage(TNC_IMVID imv_id,
                                                requested_files->remove(requested_files, (void*)request_id, NULL);
                                        }
 
+                                       files_in_dir_with_meas->destroy(files_in_dir_with_meas);
                                        e_meas->destroy(e_meas);
                                        break;
                                }
@@ -702,6 +703,7 @@ TNC_Result TNC_IMV_Terminate(TNC_IMVID imv_id)
        }
        DESTROY_IF(pts_db);
        DESTROY_IF(pts_creds);
+       requested_files->destroy(requested_files);
        imv_attestation->destroy(imv_attestation);
        imv_attestation = NULL;