Skip to content

Commit

Permalink
src/signature: fix leaking BIOs
Browse files Browse the repository at this point in the history
Signed-off-by: Enrico Joerns <[email protected]>
  • Loading branch information
ejoerns committed Mar 1, 2022
1 parent 5781d09 commit f08f5a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/signature.c
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,7 @@ gchar* sigdata_to_string(GBytes *sig, GError **error)
ret = dump_cms(signers);

sk_X509_free(signers);
BIO_free(insig);

return ret;
}
Expand Down Expand Up @@ -1007,6 +1008,7 @@ gboolean cms_is_detached(GBytes *sig, gboolean *detached, GError **error)
out:
if (cms)
CMS_ContentInfo_free(cms);
BIO_free(insig);
return res;
}

Expand Down Expand Up @@ -1074,6 +1076,7 @@ gboolean cms_get_unverified_manifest(GBytes *sig, GBytes **manifest, GError **er
out:
if (cms)
CMS_ContentInfo_free(cms);
BIO_free(insig);
return res;
}

Expand Down

0 comments on commit f08f5a2

Please sign in to comment.