Plug memory leaks.
Coverity CID: 1087993, 1087992 Approved by: re (marius) Sponsored by: FreeBSD Foundation
This commit is contained in:
parent
bd32ec0619
commit
5989c4cc16
@ -419,8 +419,9 @@ login_send_chap_c(struct pdu *request, const unsigned char id,
|
||||
keys_add(response_keys, "CHAP_C", chap_c);
|
||||
free(chap_c);
|
||||
keys_save(response_keys, response);
|
||||
keys_delete(response_keys);
|
||||
pdu_send(response);
|
||||
pdu_delete(response);
|
||||
keys_delete(response_keys);
|
||||
}
|
||||
|
||||
static struct pdu *
|
||||
@ -558,6 +559,7 @@ login_send_chap_success(struct pdu *request,
|
||||
|
||||
keys_delete(request_keys);
|
||||
pdu_send(response);
|
||||
pdu_delete(response);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user