Fixes after coverity static analysis

This commit is contained in:
Olof hagsand 2024-03-03 17:05:36 +01:00
parent d94b4f5b7c
commit a1badc312e
24 changed files with 148 additions and 70 deletions

View file

@ -621,8 +621,11 @@ xp_logop(xp_ctx *xc1,
goto done;
}
*xrp = xr;
xr = NULL;
retval = 0;
done:
if (xr)
ctx_free(xr);
return retval;
}
@ -684,8 +687,11 @@ xp_numop(xp_ctx *xc1,
goto done;
}
*xrp = xr;
xr = NULL;
retval = 0;
done:
if (xr)
ctx_free(xr);
return retval;
}
@ -1111,8 +1117,11 @@ xp_union(xp_ctx *xc1,
goto done;
}
*xrp = xr;
xr = NULL;
retval = 0;
done:
if (xr)
ctx_free(xr);
return retval;
}