diff options
author | mav <mav@FreeBSD.org> | 2015-03-01 09:28:39 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2015-03-01 09:28:39 +0000 |
commit | 47c76cda5688854a09ee981b073e966f2516b175 (patch) | |
tree | bfb9022e867835df03bc18854edc85febfc8b26f /usr.sbin | |
parent | a206bae4b50455151b72b8dcc537faca3445f288 (diff) | |
download | FreeBSD-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.c | 1 |
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); } |