memory leak
This commit is contained in:
parent
526495fbb4
commit
ca1352db93
17
hunspell-1.1.5.freem.patch
Normal file
17
hunspell-1.1.5.freem.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
diff -ru hunspell-1.1.5.orig/src/hunspell/hunspell.cxx hunspell-1.1.5/src/hunspell/hunspell.cxx
|
||||||
|
--- hunspell-1.1.5.orig/src/hunspell/hunspell.cxx 2007-06-29 12:12:57.000000000 +0100
|
||||||
|
+++ hunspell-1.1.5/src/hunspell/hunspell.cxx 2007-06-29 12:18:31.000000000 +0100
|
||||||
|
@@ -1674,7 +1674,12 @@
|
||||||
|
if (!word) return 0;
|
||||||
|
char * m = morph(word);
|
||||||
|
if(!m) return 0;
|
||||||
|
- if (!out) return line_tok(m, out);
|
||||||
|
+ if (!out)
|
||||||
|
+ {
|
||||||
|
+ n = line_tok(m, out);
|
||||||
|
+ free(m)
|
||||||
|
+ return n;
|
||||||
|
+ }
|
||||||
|
|
||||||
|
// without memory allocation
|
||||||
|
/* BUG missing buffer size checking */
|
@ -1,7 +1,7 @@
|
|||||||
Name: hunspell
|
Name: hunspell
|
||||||
Summary: Hunspell is a spell checker and morphological analyzer library
|
Summary: Hunspell is a spell checker and morphological analyzer library
|
||||||
Version: 1.1.5.3
|
Version: 1.1.5.3
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Source: http://downloads.sourceforge.net/%{name}/hunspell-1.1.5-3.tar.gz
|
Source: http://downloads.sourceforge.net/%{name}/hunspell-1.1.5-3.tar.gz
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
URL: http://hunspell.sourceforge.net/
|
URL: http://hunspell.sourceforge.net/
|
||||||
@ -12,6 +12,7 @@ BuildRequires: libtool
|
|||||||
Patch0: hunspell-1.1.4-defaultdictfromlang.patch
|
Patch0: hunspell-1.1.4-defaultdictfromlang.patch
|
||||||
Patch1: hunspell-1.1.5-badheader.patch
|
Patch1: hunspell-1.1.5-badheader.patch
|
||||||
Patch2: hunspell-1.1.5.encoding.patch
|
Patch2: hunspell-1.1.5.encoding.patch
|
||||||
|
Patch3: hunspell-1.1.5.freem.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Hunspell is a spell checker and morphological analyzer library and program
|
Hunspell is a spell checker and morphological analyzer library and program
|
||||||
@ -31,7 +32,8 @@ Includes and definitions for developing with hunspell
|
|||||||
%setup -q -n hunspell-1.1.5
|
%setup -q -n hunspell-1.1.5
|
||||||
%patch0 -p1 -b .defaultdictfromlang.patch
|
%patch0 -p1 -b .defaultdictfromlang.patch
|
||||||
%patch1 -p1 -b .badheader.patch
|
%patch1 -p1 -b .badheader.patch
|
||||||
%patch2 -p1 -b .hunspell-1.1.5.encoding.patch
|
%patch2 -p1 -b .encoding.patch
|
||||||
|
%patch3 -p1 -b .freem.patch
|
||||||
|
|
||||||
%build
|
%build
|
||||||
libtoolize --automake --force
|
libtoolize --automake --force
|
||||||
@ -82,6 +84,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_libdir}/pkgconfig/hunspell.pc
|
%{_libdir}/pkgconfig/hunspell.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 29 2007 Caolan McNamara <caolanm@redhat.com> - 1.1.5.3-5
|
||||||
|
- fix memory leak
|
||||||
|
http://sourceforge.net/tracker/index.php?func=detail&aid=1745263&group_id=143754&atid=756395
|
||||||
|
|
||||||
* Wed Jun 06 2007 Caolan McNamara <caolanm@redhat.com> - 1.1.5.3-4
|
* Wed Jun 06 2007 Caolan McNamara <caolanm@redhat.com> - 1.1.5.3-4
|
||||||
- Resolves: rhbz#212984 discovered problem with missing wordchars
|
- Resolves: rhbz#212984 discovered problem with missing wordchars
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user