mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
ucm: fix memory leaks detected by the coverity checker
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
6fbf87c402
commit
6a76c01a01
2 changed files with 7 additions and 1 deletions
|
|
@ -158,6 +158,7 @@ __rval:
|
|||
if (nsize > size) {
|
||||
nr = realloc(r, nsize);
|
||||
if (nr == NULL) {
|
||||
free(rval);
|
||||
err = -ENOMEM;
|
||||
goto __error;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue