aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2014-07-01 12:31:07 +0200
committerTobias Brunner <tobias@strongswan.org>2014-07-01 17:58:36 +0200
commitecb55b4639997f7d5e206994b7e008e6630a994f (patch)
tree512038e4ccb3f03cea2b97502c44ed049d1f5b30 /src
parent530d87be1bec8514507782e045cef064e248a916 (diff)
downloadstrongswan-ecb55b4639997f7d5e206994b7e008e6630a994f.tar.bz2
strongswan-ecb55b4639997f7d5e206994b7e008e6630a994f.tar.xz
imv-attestation: Avoid memory leak when skipping unsupported work items
Diffstat (limited to 'src')
-rw-r--r--src/libpts/plugins/imv_attestation/imv_attestation_agent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libpts/plugins/imv_attestation/imv_attestation_agent.c b/src/libpts/plugins/imv_attestation/imv_attestation_agent.c
index 1e4955c2b..fcfee31c1 100644
--- a/src/libpts/plugins/imv_attestation/imv_attestation_agent.c
+++ b/src/libpts/plugins/imv_attestation/imv_attestation_agent.c
@@ -802,6 +802,7 @@ METHOD(imv_agent_if_t, solicit_recommendation, TNC_Result,
result_str = result_buf.ptr;
break;
default:
+ result->destroy(result);
continue;
}
session->remove_workitem(session, enumerator);