pkcs15init: free cert object if 'link object' failed
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4135 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
ef8e169955
commit
0c9b9f21a8
|
@ -1484,7 +1484,8 @@ sc_pkcs15init_store_certificate(struct sc_pkcs15_card *p15card,
|
|||
/* Now update the CDF */
|
||||
if (r >= 0)
|
||||
r = sc_pkcs15init_add_object(p15card, profile, SC_PKCS15_CDF, object);
|
||||
else
|
||||
|
||||
if (r < 0)
|
||||
sc_pkcs15_free_object(object);
|
||||
|
||||
if (r >= 0 && res_obj)
|
||||
|
|
Loading…
Reference in New Issue