ucm: fix memory leaks detected by the coverity checker

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2019-11-15 12:52:36 +01:00
parent 6fbf87c402
commit 6a76c01a01
2 changed files with 7 additions and 1 deletions

View file

@ -158,6 +158,7 @@ __rval:
if (nsize > size) {
nr = realloc(r, nsize);
if (nr == NULL) {
free(rval);
err = -ENOMEM;
goto __error;
}