[alsa-devel] [PATCH 3/3 v3] alsa-lib: fixed coverity reported issues under "USE_AFTER_FREE" checker.

Sudarshan Bisht sudarshan.bisht at nokia.com
Mon Apr 4 12:02:29 CEST 2011


Hello Paul,

Thanks for pointing this out.  I will correct it and send updated patch.


Br,
Sudarshan Bisht  

On Mon, 2011-04-04 at 11:12 +0200, ext Paul Menzel wrote:
> Dear Sudarshan,
> 
> 
> Am Montag, den 04.04.2011, 11:53 +0300 schrieb sudarshan.bisht at nokia.com:
> 
> […]
> 
> > diff --git a/src/mixer/simple_abst.c b/src/mixer/simple_abst.c
> > index 9e9aaf5..dd0dfa3 100644
> > --- a/src/mixer/simple_abst.c
> > +++ b/src/mixer/simple_abst.c
> > @@ -336,6 +336,8 @@ int snd_mixer_simple_basic_register(snd_mixer_t
> > *mixer,
> >                 err = find_module(class, top);
> >         if (err >= 0)
> >                 err = snd_mixer_attach_hctl(mixer, priv->hctl);
> > +               if (err < 0) 
> > +                        goto __error;          
> 
> There are still trailing white spaces at the end of both lines. The
> following command should show these to you with red color.
> 
> 	git log -p --color-words
> 
> >         if (err >= 0) {
> >                 priv->attach_flag = 1;
> >                 err = snd_mixer_class_register(class, mixer);
> 
> 
> Thanks,
> 
> Paul
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel




More information about the Alsa-devel mailing list