import createrepo_c-0.17.2-2.el8

This commit is contained in:
CentOS Sources 2021-08-09 18:20:06 +00:00 committed by Andrew Lukoshko
parent 97144fa5af
commit 41a08721ea
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 1ec1e767e4a48bc2c1d09b52da9e749352f8d925 Mon Sep 17 00:00:00 2001
From: Jaroslav Rohel <jrohel@redhat.com>
Date: Thu, 6 May 2021 19:09:19 +0200
Subject: [PATCH] Fix: cr_compress_file_with_stat: Memory leak
---
src/misc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/misc.c b/src/misc.c
index e5350ac..59c04e6 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -503,6 +503,8 @@ cr_compress_file_with_stat(const char *src,
if (!orig) {
ret = tmp_err->code;
g_propagate_prefixed_error(err, tmp_err, "Cannot open %s: ", src);
+ if (dst != in_dst)
+ g_free(dst);
return ret;
}
--
libgit2 1.0.1

View File

@ -25,10 +25,11 @@
Summary: Creates a common metadata repository
Name: createrepo_c
Version: 0.17.2
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2+
URL: https://github.com/rpm-software-management/createrepo_c
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Patch1: 0001-Fix-cr_compress_file_with_stat-Memory-leak.patch
BuildRequires: cmake
BuildRequires: gcc
@ -175,6 +176,9 @@ ln -sr %{buildroot}%{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo
%{python3_sitearch}/%{name}-%{version}-py%{python3_version}.egg-info
%changelog
* Tue Jul 27 2021 Pavla Kratochvilova <pkratoch@redhat.com> - 0.17.2-2
- Fix: cr_compress_file_with_stat: Memory leak
* Wed Apr 28 2021 Pavla Kratochvilova <pkratoch@redhat.com> - 0.17.2-1
- Update to 0.17.2
- Fix Python deprecation (PY_SSIZE_T_CLEAN) (RhBug:1891785)