Automatically free up dynamically allocated public key methods when
[oweals/openssl.git] / crypto / engine / eng_list.c
index bd511944bafdabbfabf34b0e96adced573cf9d97..66a52b89e0c174d5acf1dfbdcfc66faf86b29631 100644 (file)
@@ -336,6 +336,7 @@ static void engine_cpy(ENGINE *dest, const ENGINE *src)
        dest->store_meth = src->store_meth;
        dest->ciphers = src->ciphers;
        dest->digests = src->digests;
+       dest->pkey_meths = src->pkey_meths;
        dest->destroy = src->destroy;
        dest->init = src->init;
        dest->finish = src->finish;