svn commit: r279481 - stable/10/usr.sbin/ctld

Alexander Motin mav at FreeBSD.org
Sun Mar 1 09:28:40 UTC 2015


Author: mav
Date: Sun Mar  1 09:28:39 2015
New Revision: 279481
URL: https://svnweb.freebsd.org/changeset/base/279481

Log:
  MFC r279277: Fix memory leak on incorrect initiator portal.
  
  Submitted by:	Dmitry Luhtionov <dmitryluhtionov at gmail.com>

Modified:
  stable/10/usr.sbin/ctld/ctld.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/ctld/ctld.c
==============================================================================
--- stable/10/usr.sbin/ctld/ctld.c	Sun Mar  1 07:00:34 2015	(r279480)
+++ stable/10/usr.sbin/ctld/ctld.c	Sun Mar  1 09:28:39 2015	(r279481)
@@ -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);
 }


More information about the svn-src-all mailing list