Re: [HelenOS-devel] leak in gpt source

2016-03-15 Thread Jakub Jermář
Hi Manuele, On 03/15/2016 01:54 PM, Manuele Conti wrote: > Hi all, > I found a leak in gpt.c source and I try to fix it. > See my attached file. Good catch & thanks for sending us the patch. I eventually fixed this in a slightly different way by placing the (b1 <= b0) test before the calloc() in

[HelenOS-devel] leak in gpt source

2016-03-15 Thread Manuele Conti
Hi all, I found a leak in gpt.c source and I try to fix it. See my attached file. Regards, Manuele === modified file 'uspace/lib/label/src/gpt.c' --- uspace/lib/label/src/gpt.c 2015-11-04 18:39:51 + +++ uspace/lib/label/src/gpt.c 2016-03-15 12:50:21 + @@ -823,8 +823,10 @@ b0 = uint64_t