summaryrefslogtreecommitdiff
path: root/accel-pppd/auth/auth_mschap_v2.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/auth/auth_mschap_v2.c')
-rw-r--r--accel-pppd/auth/auth_mschap_v2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/accel-pppd/auth/auth_mschap_v2.c b/accel-pppd/auth/auth_mschap_v2.c
index 3ee2adc3..d679aca9 100644
--- a/accel-pppd/auth/auth_mschap_v2.c
+++ b/accel-pppd/auth/auth_mschap_v2.c
@@ -394,6 +394,10 @@ static void chap_recv_response(struct chap_auth_data_t *ad, struct chap_hdr_t *h
else
ppp_auth_failed(ad->ppp, name);
_free(name);
+ if (mschap_error != conf_msg_failure)
+ _free(mschap_error);
+ if (reply_msg != conf_msg_failure2)
+ _free(reply_msg);
} else {
if (!ad->started) {
if (ppp_auth_succeeded(ad->ppp, name)) {