Date: Wed, 25 Feb 2015 10:10:40 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r279277 - head/usr.sbin/ctld Message-ID: <201502251010.t1PAAe6E013615@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Wed Feb 25 10:10:40 2015 New Revision: 279277 URL: https://svnweb.freebsd.org/changeset/base/279277 Log: Fix memory leak on incorrect initiator portal. Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 3 days Modified: head/usr.sbin/ctld/ctld.c Modified: head/usr.sbin/ctld/ctld.c ============================================================================== --- head/usr.sbin/ctld/ctld.c Wed Feb 25 10:07:39 2015 (r279276) +++ head/usr.sbin/ctld/ctld.c Wed Feb 25 10:10:40 2015 (r279277) @@ -400,6 +400,7 @@ auth_portal_new(struct auth_group *ag, c return (ap); error: + free(ap); log_errx(1, "Incorrect initiator portal '%s'", portal); return (NULL); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502251010.t1PAAe6E013615>