mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
alsa-lib: fixed coverity reported issues under "FORWARD_NULL" checker.
Coverity Static Analysis helps developers find hard-to-spot, yet potentially crash-causing defects early in the development phase, reducing the cost,time, and risk of software errors. This patch has fix for situations where variable can be NULL but not been checked beforehand Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
6bb36928b1
commit
808ce5deb3
7 changed files with 11 additions and 5 deletions
|
|
@ -99,7 +99,7 @@ int mixer_simple_basic_dlopen(snd_mixer_class_t *class,
|
|||
__error:
|
||||
if (initflag)
|
||||
free(priv);
|
||||
if (h == NULL)
|
||||
if (h)
|
||||
snd_dlclose(h);
|
||||
free(xlib);
|
||||
return -ENXIO;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue