Free packet on OOM
authoraland <aland>
Tue, 25 Dec 2007 08:17:26 +0000 (08:17 +0000)
committeraland <aland>
Tue, 25 Dec 2007 08:17:26 +0000 (08:17 +0000)
src/modules/rlm_eap/types/rlm_eap_md5/rlm_eap_md5.c

index eb9514e..4fcbaa9 100644 (file)
@@ -136,6 +136,7 @@ static int md5_authenticate(UNUSED void *arg, EAP_HANDLER *handler)
         */
        reply = eapmd5_alloc();
        if (!reply) {
+               eapmd5_free(&packet);
                return 0;
        }
        reply->id = handler->eap_ds->request->id;