]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
imv-attestation: Avoid memory leak when skipping unsupported work items
authorTobias Brunner <tobias@strongswan.org>
Tue, 1 Jul 2014 10:31:07 +0000 (12:31 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 1 Jul 2014 15:58:36 +0000 (17:58 +0200)
src/libpts/plugins/imv_attestation/imv_attestation_agent.c

index 1e4955c2b6d4894d29b686d9d0848d136d4c69f3..fcfee31c1eb53ccb07939b1951324d914047e2e7 100644 (file)
@@ -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);