Skip to content

Commit

Permalink
objects: Avoid memory leak
Browse files Browse the repository at this point in the history
This was introduced in 9855e8e

Signed-off-by: Jakub Jelen <[email protected]>
  • Loading branch information
Jakuje committed Dec 6, 2023
1 parent 412fe7c commit ec98a53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ec98a53

Please sign in to comment.