mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
iscsi-scstd: Fix a memory leak in conn_free()
Signed-off-by: Lev Vainblat <lev@zadarastorage.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8783 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -56,6 +56,8 @@ void conn_free(struct connection *conn)
|
||||
free(conn->initiator);
|
||||
free(conn->target_portal);
|
||||
free(conn->user);
|
||||
if (conn->auth_method == AUTH_CHAP)
|
||||
free(conn->auth.chap.challenge);
|
||||
free(conn);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user