Re: [PATCH] fix double free

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

 



On Wed, Aug 17, 2016 at 11:52:04AM +0300, Aleksey Kuleshov wrote:
> it already gets free in bootentries_free
> no need to do this in ->release method
> 
> Signed-off-by: Aleksey Kuleshov <rndfax@xxxxxxxxx>
> ---
>  common/boot.c | 1 -
>  1 file changed, 1 deletion(-)

Applied, thanks

Sascha

> 
> diff --git a/common/boot.c b/common/boot.c
> index a2f5a81..52e181d 100644
> --- a/common/boot.c
> +++ b/common/boot.c
> @@ -169,7 +169,6 @@ static void bootscript_entry_release(struct bootentry *entry)
>  	struct bootentry_script *bs = container_of(entry, struct bootentry_script, entry);
>  
>  	free(bs->scriptpath);
> -	free(bs->entry.me.display);
>  	free(bs);
>  }
>  
> -- 
> 2.8.0.rc3
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@xxxxxxxxxxxxxxxxxxx
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux