From 6b62a6a2ac4c88cde27320236839a407ca3c7090 Mon Sep 17 00:00:00 2001 From: Jon Ciesla Date: Thu, 31 Oct 2013 08:35:10 -0500 Subject: [PATCH] Patch for memory leak. --- libxdg-basedir-leak.patch | 14 ++++++++++++++ libxdg-basedir.spec | 7 ++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 libxdg-basedir-leak.patch diff --git a/libxdg-basedir-leak.patch b/libxdg-basedir-leak.patch new file mode 100644 index 0000000..39f4d9a --- /dev/null +++ b/libxdg-basedir-leak.patch @@ -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); diff --git a/libxdg-basedir.spec b/libxdg-basedir.spec index f30273f..6c93e9d 100644 --- a/libxdg-basedir.spec +++ b/libxdg-basedir.spec @@ -1,6 +1,6 @@ Name: libxdg-basedir Version: 1.2.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Implementation of the XDG Base Directory Specifications Group: System Environment/Libraries @@ -8,6 +8,7 @@ License: MIT URL: http://n.ethz.ch/student/nevillm/download/libxdg-basedir Source0: http://n.ethz.ch/student/nevillm/download/libxdg-basedir/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Patch0: libxdg-basedir-leak.patch %description @@ -44,6 +45,7 @@ developing applications that use %{name}. %prep %setup -q +%patch0 -p1 %build %configure --disable-static @@ -84,6 +86,9 @@ rm -rf $RPM_BUILD_ROOT %doc doc/html/ %changelog +* Thu Oct 31 2013 Jon Ciesla - 1.2.0-5 +- Patch for memory leak, BZ 1018527. + * Sat Aug 03 2013 Fedora Release Engineering - 1.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild