Hi Jan, You right tomorrow I'll resend my patch with your suggest. Many thanks, Manuele
> On 30 Mar 2016, at 15:54, Jan Vesely <jano.ves...@gmail.com> wrote: > >> On Wed, 2016-03-30 at 13:21 +0200, Manuele Conti wrote: >> Hi All, >> I found a memory leak in a mkmfs util and I try to fix it. > > free() is NULL safe (C std 7.20.3.2, and also in HelenOS > uspace/lib/c/generic/malloc.c:972). doing: > > if (p) > free(p); > > is useless. > > regards, > Jan > >> >> Regards, >> Manuele >> _______________________________________________ >> HelenOS-devel mailing list >> HelenOS-devel@lists.modry.cz >> http://lists.modry.cz/listinfo/helenos-devel > _______________________________________________ > HelenOS-devel mailing list > HelenOS-devel@lists.modry.cz > http://lists.modry.cz/listinfo/helenos-devel _______________________________________________ HelenOS-devel mailing list HelenOS-devel@lists.modry.cz http://lists.modry.cz/listinfo/helenos-devel