Patch for memory leak.

This commit is contained in:
Jon Ciesla 2013-10-31 08:35:10 -05:00
parent 1325a21043
commit 6b62a6a2ac
2 changed files with 20 additions and 1 deletions

14
libxdg-basedir-leak.patch Normal file
View File

@ -0,0 +1,14 @@
--- libxdg-basedir-1.2.0/src/basedir.c 2012-01-22 02:29:11.000000000 +0100
+++ libxdg-basedir-1.2.0/src/basedir.c 2013-10-13 00:55:11.174671212 +0200
@@ -160,6 +160,11 @@
free(cache->cacheHome);
cache->cacheHome = 0;
}
+ if (cache->runtimeDirectory)
+ {
+ free(cache->runtimeDirectory);
+ cache->runtimeDirectory = 0;
+ }
xdgFreeStringList(cache->searchableDataDirectories);
cache->searchableDataDirectories = 0;
xdgFreeStringList(cache->searchableConfigDirectories);

View File

@ -1,6 +1,6 @@
Name: libxdg-basedir Name: libxdg-basedir
Version: 1.2.0 Version: 1.2.0
Release: 4%{?dist} Release: 5%{?dist}
Summary: Implementation of the XDG Base Directory Specifications Summary: Implementation of the XDG Base Directory Specifications
Group: System Environment/Libraries Group: System Environment/Libraries
@ -8,6 +8,7 @@ License: MIT
URL: http://n.ethz.ch/student/nevillm/download/libxdg-basedir URL: http://n.ethz.ch/student/nevillm/download/libxdg-basedir
Source0: http://n.ethz.ch/student/nevillm/download/libxdg-basedir/%{name}-%{version}.tar.gz Source0: http://n.ethz.ch/student/nevillm/download/libxdg-basedir/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch0: libxdg-basedir-leak.patch
%description %description
@ -44,6 +45,7 @@ developing applications that use %{name}.
%prep %prep
%setup -q %setup -q
%patch0 -p1
%build %build
%configure --disable-static %configure --disable-static
@ -84,6 +86,9 @@ rm -rf $RPM_BUILD_ROOT
%doc doc/html/ %doc doc/html/
%changelog %changelog
* Thu Oct 31 2013 Jon Ciesla <limburgher@gmail.com> - 1.2.0-5
- Patch for memory leak, BZ 1018527.
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-4 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild