Fix Coverity 1503329 use after free
Another false positive tagged as such
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/18014)
diff --git a/crypto/store/store_lib.c b/crypto/store/store_lib.c
index 696056e..3d91f15 100644
--- a/crypto/store/store_lib.c
+++ b/crypto/store/store_lib.c
@@ -215,6 +215,8 @@
*/
(void)ossl_store_close_it(&tmpctx);
}
+ /* Coverity false positive, the reference counting is confusing it */
+ /* coverity[pass_freed_arg] */
OSSL_STORE_LOADER_free(fetched_loader);
OPENSSL_free(propq_copy);
OPENSSL_free(ctx);