summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2015-03-01 09:28:39 +0000
committermav <mav@FreeBSD.org>2015-03-01 09:28:39 +0000
commit47c76cda5688854a09ee981b073e966f2516b175 (patch)
treebfb9022e867835df03bc18854edc85febfc8b26f /usr.sbin
parenta206bae4b50455151b72b8dcc537faca3445f288 (diff)
downloadFreeBSD-src-47c76cda5688854a09ee981b073e966f2516b175.zip
FreeBSD-src-47c76cda5688854a09ee981b073e966f2516b175.tar.gz
MFC r279277: Fix memory leak on incorrect initiator portal.
Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ctld/ctld.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/ctld/ctld.c b/usr.sbin/ctld/ctld.c
index cc20a2c..6c7b968 100644
--- a/usr.sbin/ctld/ctld.c
+++ b/usr.sbin/ctld/ctld.c
@@ -400,6 +400,7 @@ auth_portal_new(struct auth_group *ag, const char *portal)
return (ap);
error:
+ free(ap);
log_errx(1, "Incorrect initiator portal '%s'", portal);
return (NULL);
}
OpenPOWER on IntegriCloud