Fix coverity issue: CID 1466486 - Resource leak in OSSL_STORE
[openssl.git] / crypto / store / store_lib.c
index 61558a9b6efac437120b1f429f2d6c4c5daac1dd..98e49d826d4c45e06d41d619f1b3189a20acb07c 100644 (file)
@@ -178,6 +178,7 @@ OSSL_STORE_open_with_libctx(const char *uri,
     }
     OSSL_STORE_LOADER_free(fetched_loader);
     OPENSSL_free(propq_copy);
+    OPENSSL_free(ctx);
     return NULL;
 }