don't leak RADIUS response packet
[moonshot.git] / mech_eap / accept_sec_context.c
index b1c6754..eb38c92 100644 (file)
@@ -591,6 +591,8 @@ cleanup:
         rs_request_destroy(request);
     if (req != NULL)
         rs_packet_destroy(req);
+    if (resp != NULL)
+        rs_packet_destroy(resp);
     if (GSSEAP_SM_STATE(ctx) == GSSEAP_STATE_INITIATOR_EXTS) {
         assert(major == GSS_S_CONTINUE_NEEDED);