Fixes after coverity analysis

This commit is contained in:
Olof hagsand 2023-12-30 16:04:06 +01:00
parent 7b58c1c562
commit 0fff9d8ef5
13 changed files with 43 additions and 24 deletions

View file

@ -540,8 +540,11 @@ xml_namespace_vec(clixon_handle h,
xvec[i++] = xc;
}
*vecp = xvec;
xvec = NULL;
*veclenp = i;
retval = 0;
done:
if (xvec)
free(xvec);
return retval;
}