Re: [HelenOS-devel] Fix leak kdio producer

2016-07-08 Thread Jakub Jermář
On 07/06/2016 10:37 AM, Manuele Conti wrote: > I found this bug in kio.c using cppcheck and I try to fix. Thanks, a nice catch. Partially applied in mainline,2529: I don't think the test for data==NULL is necessary and only clutters the code. Should data ever be NULL, let the caller be punished by

[HelenOS-devel] Fix leak kdio producer

2016-07-06 Thread Manuele Conti
Hi All, I found this bug in kio.c using cppcheck and I try to fix. Cheers, Manuele === modified file 'uspace/app/kio/kio.c' --- uspace/app/kio/kio.c 2014-08-16 00:02:04 + +++ uspace/app/kio/kio.c 2016-07-06 08:25:10 + @@ -78,13 +78,16 @@ */ static void producer(size_t length, wchar_t *da