free only lock on existance, cid#53

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24145 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-12-11 05:07:25 +00:00
parent 90e52850c1
commit e2f40cd57f

View File

@@ -1628,7 +1628,8 @@ _krb5_pk_load_id(krb5_context context,
} else
*ret_id = id;
hx509_lock_free(lock);
if (lock)
hx509_lock_free(lock);
return ret;
}