svn commit: r279277 - head/usr.sbin/ctld

Alexander Motin mav at FreeBSD.org
Wed Feb 25 10:10:41 UTC 2015


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 at 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);
 }


More information about the svn-src-head mailing list