> Il giorno 14/feb/2015, alle ore 20:12, Pedro F. Giffuni <p...@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.

_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to