Fix memory leak on incorrect initiator portal.
Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 3 days
This commit is contained in:
parent
16fa28094c
commit
678b68798f
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user