Misc fixes (coverity)

This commit is contained in:
Nicolas Williams
2016-11-18 22:21:37 -06:00
parent 4b6bd40106
commit 52a562a3a4
10 changed files with 23 additions and 18 deletions

View File

@@ -337,8 +337,10 @@ load_ocsp(hx509_context context, struct revoke_ocsp *ocsp)
return ret;
ret = stat(ocsp->path, &sb);
if (ret)
if (ret) {
rk_xfree(data);
return errno;
}
ret = parse_ocsp_basic(data, length, &basic);
rk_xfree(data);