svn commit: r278790 - head/sys/fs/ext2fs

Pedro Giffuni pfg at freebsd.org
Sun Feb 15 10:51:58 UTC 2015


> Il giorno 14/feb/2015, alle ore 20:12, Pedro F. Giffuni <pfg at freebsd.org> ha scritto:
> 
> Author: pfg
> Date: Sun Feb 15 01:12:15 2015
> New Revision: 278790
> URL: https://svnweb.freebsd.org/changeset/base/278790
> 
> Log:
>  Initialize the allocation of variables related to the ext2 allocator.
> 
>  The e2fs_gd struct was not being initialized and garbage was
>  being used for hinting the ext2 allocator variant.
>  Use malloc to clear the values and also initialize e2fs_contigdirs
>  during allocation to keep consistency.
> 
>  While here clean up small style issues.
> 
>  Reported by:	Clang static analyser
>  MFC after:	1 week
> 
> Modified:
>  head/sys/fs/ext2fs/ext2_vfsops.c
> 

Actually .. it’s a false positive but there is a memory leak there so
taking a fresh look at the code was good.

Pedro.



More information about the svn-src-head mailing list