Date: Wed, 9 Oct 2013 13:28:45 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r256192 - head/usr.sbin/ctld Message-ID: <201310091328.r99DSjtS086219@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Wed Oct 9 13:28:45 2013 New Revision: 256192 URL: http://svnweb.freebsd.org/changeset/base/256192 Log: Plug memory leaks. Coverity CID: 1087993, 1087992 Approved by: re (marius) Sponsored by: FreeBSD Foundation Modified: head/usr.sbin/ctld/login.c Modified: head/usr.sbin/ctld/login.c ============================================================================== --- head/usr.sbin/ctld/login.c Wed Oct 9 12:30:52 2013 (r256191) +++ head/usr.sbin/ctld/login.c Wed Oct 9 13:28:45 2013 (r256192) @@ -419,8 +419,9 @@ login_send_chap_c(struct pdu *request, c 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 *requ keys_delete(request_keys); pdu_send(response); + pdu_delete(response); } static void
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310091328.r99DSjtS086219>