Re: [PATCH] iscsi: fix leak of session->initiator_alias

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 21 Feb 2014 22:15:02 +0900
Ryusuke Konishi <konishi.ryusuke@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxx>
> ---
>  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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux