diff --git a/0001-fsck-fix-memory-leak.patch b/0001-fsck-fix-memory-leak.patch new file mode 100644 index 0000000..07c9044 --- /dev/null +++ b/0001-fsck-fix-memory-leak.patch @@ -0,0 +1,10 @@ +--- a/fsck/fsck.c 2021-11-17 10:13:55.729267514 +0100 ++++ b/fsck/fsck.c 2022-05-10 12:19:36.397415101 +0200 +@@ -796,6 +796,7 @@ + if (exfat_read(exfat->blk_dev->dev_fd, boot_sect, + sizeof(*boot_sect), 0) != (ssize_t)sizeof(*boot_sect)) { + exfat_err("failed to read Main boot sector\n"); ++ free(boot_sect); + return -EIO; + } + diff --git a/exfatprogs.spec b/exfatprogs.spec index 5ee237e..1433db2 100644 --- a/exfatprogs.spec +++ b/exfatprogs.spec @@ -1,11 +1,12 @@ Name: exfatprogs Version: 1.1.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Userspace utilities for exFAT filesystems License: GPLv2 URL: https://github.com/%{name}/%{name} Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz +Patch0: 0001-fsck-fix-memory-leak.patch BuildRequires: autoconf BuildRequires: automake @@ -17,7 +18,7 @@ BuildRequires: make Utilities for formatting and repairing exFAT filesystems. %prep -%autosetup +%autosetup -p1 %build autoreconf -vif @@ -44,7 +45,10 @@ autoreconf -vif %{_mandir}/man8/tune.exfat.* %changelog -* Wed Apr 20 2022 Pavel Reichl - 1.1.2-3 +* Mon May 09 2022 Pavel Reichl - 1.1.3-2 +- Fix memomry leak + +* Wed Apr 20 2022 Pavel Reichl - 1.1.3-1 - Rebase * Mon Aug 09 2021 Mohan Boddu - 1.1.2-2