[stgt] [PATCH] iscsi: fix leak of session->initiator_alias
FUJITA Tomonori
fujita.tomonori at lab.ntt.co.jp
Sun Feb 23 13:55:12 CET 2014
On Fri, 21 Feb 2014 22:15:02 +0900
Ryusuke Konishi <konishi.ryusuke at lab.ntt.co.jp> wrote:
> session->initiator_alias is not freed in error paths of
> session_create() and even in the normal path of session_destroy().
>
> This fixes these leak bugs.
>
> Note that we don't have to do a null check for
> session->initiator_alias before calling free(session->initiator_alias)
> because free() function simply ignores NULL pointer.
>
> Signed-off-by: Ryusuke Konishi <konishi.ryusuke at lab.ntt.co.jp>
> ---
> usr/iscsi/session.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
Applied, thanks a lot!
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list