From ec98a53c29c9599729a2519ccb323ae2a07e5ee9 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Wed, 6 Dec 2023 17:25:39 +0100 Subject: [PATCH] objects: Avoid memory leak This was introduced in 9855e8eaf40d8c047245bc1767ab4a0b7b2220ab Signed-off-by: Jakub Jelen --- src/objects.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/objects.c b/src/objects.c index 671fa5a0..5e6d11d5 100644 --- a/src/objects.c +++ b/src/objects.c @@ -451,6 +451,8 @@ void p11prov_obj_free(P11PROV_OBJ *obj) OPENSSL_free(obj->attrs); OPENSSL_clear_free(obj, sizeof(P11PROV_OBJ)); + + p11prov_uri_free(obj->refresh_uri); } CK_SLOT_ID p11prov_obj_get_slotid(P11PROV_OBJ *obj)