Permalink
Browse files

Plug memory leaks.

Coverity CID:	1087993, 1087992
Approved by:	re (marius)
Sponsored by:	FreeBSD Foundation
  • Loading branch information...
1 parent e282c24 commit 33f6245f1b5d4f40ef73a76c2f8b49423aaa1de9 @trasz trasz committed Oct 9, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 usr.sbin/ctld/login.c
@@ -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

0 comments on commit 33f6245

Please sign in to comment.