diff --git a/0001-resource-leaks.patch b/0001-resource-leaks.patch index b8d7f91..06bcf63 100644 --- a/0001-resource-leaks.patch +++ b/0001-resource-leaks.patch @@ -33,16 +33,16 @@ diff -up xmlsec1-1.2.25/src/c14n.c.orig xmlsec1-1.2.25/src/c14n.c diff -up xmlsec1-1.2.25/src/gcrypt/asymkeys.c.orig xmlsec1-1.2.25/src/gcrypt/asymkeys.c --- xmlsec1-1.2.25/src/gcrypt/asymkeys.c.orig 2017-09-12 15:21:09.000000000 +0200 +++ xmlsec1-1.2.25/src/gcrypt/asymkeys.c 2024-05-14 09:55:35.801202265 +0200 -@@ -190,6 +190,9 @@ done: - gcry_sexp_release(priv_key); - } +@@ -186,6 +186,9 @@ xmlSecGCryptAsymKeyDataAdoptKey(xmlSecKe + pub_key = NULL; /* data owns it now */ + priv_key = NULL; /* data owns it now */ + /* Adopt functions assume ownership thus the caller would expect this to be released */ + gcry_sexp_release(key_pair); + - /* done */ - return(res); - } + /* success */ + res = 0; + diff -up xmlsec1-1.2.25/src/parser.c.orig xmlsec1-1.2.25/src/parser.c --- xmlsec1-1.2.25/src/parser.c.orig 2017-09-12 15:21:09.000000000 +0200 +++ xmlsec1-1.2.25/src/parser.c 2024-05-14 09:55:35.802202264 +0200 diff --git a/xmlsec1.spec b/xmlsec1.spec index 5be51ea..95e9030 100644 --- a/xmlsec1.spec +++ b/xmlsec1.spec @@ -1,7 +1,7 @@ Summary: Library providing support for "XML Signature" and "XML Encryption" standards Name: xmlsec1 Version: 1.2.25 -Release: 6%{?dist}%{?extra_release} +Release: 7%{?dist}%{?extra_release} License: MIT Source0: http://www.aleksey.com/xmlsec/download/xmlsec1-%{version}.tar.gz URL: http://www.aleksey.com/xmlsec/ @@ -180,6 +180,10 @@ mv %{buildroot}%{_docdir}/xmlsec1/* __tmp_doc %{_libdir}/pkgconfig/xmlsec1-nss.pc %changelog +* Mon May 20 2024 Tomas Halman - 1.2.25-7 +- Fix adopt function the same way as in upstream + Related: RHEL-36185 + * Fri May 17 2024 Tomas Halman - 1.2.25-6 - Add xmlsec1-gnutls dependency on xmlsec1-gcrypt Related: RHEL-36185