Try to not leak memory.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18797 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-10-21 22:30:45 +00:00
parent 725278a60e
commit 4d08f3ebbf
2 changed files with 7 additions and 0 deletions

View File

@@ -853,6 +853,7 @@ request_create(struct request_create_options *opt, int argc, char **argv)
ret = _hx509_request_set_SubjectPublicKeyInfo(context,
req,
&key);
free_SubjectPublicKeyInfo(&key);
if (ret)
errx(1, "_hx509_request_set_SubjectPublicKeyInfo: %d", ret);