Add memleak.patch to fix https://sourceforge.net/p/mingw-w64/bugs/571/
OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win64/mingw64-winpthreads?expand=0&rev=18
This commit is contained in:
parent
18bd6d5101
commit
2ec72372c0
16
memleak.patch
Normal file
16
memleak.patch
Normal file
@ -0,0 +1,16 @@
|
||||
Index: winpthreads/src/thread.c
|
||||
===================================================================
|
||||
--- winpthreads.orig/src/thread.c
|
||||
+++ winpthreads/src/thread.c
|
||||
@@ -295,8 +295,10 @@ push_pthread_mem (_pthread_v *sv)
|
||||
memset (sv, 0, sizeof(struct _pthread_v));
|
||||
if (pthr_last == NULL)
|
||||
pthr_root = pthr_last = sv;
|
||||
- else
|
||||
+ else {
|
||||
pthr_last->next = sv;
|
||||
+ pthr_last = sv;
|
||||
+ }
|
||||
pthread_mutex_unlock (&mtx_pthr_locked);
|
||||
}
|
||||
|
@ -27,6 +27,7 @@ Url: http://mingw-w64.sf.net/
|
||||
#DL-URL: http://downloads.sf.net/mingw-w64/mingw-w64-v5.0-rc1.tar.bz2
|
||||
Source: mingw-w64-winpthreads-%version.tar.xz
|
||||
Source9: %name-rpmlintrc
|
||||
Patch1: memleak.patch
|
||||
BuildRequires: mingw64-cross-gcc-bootstrap
|
||||
BuildRequires: mingw64-cross-pkg-config
|
||||
BuildRequires: mingw64-filesystem
|
||||
@ -63,6 +64,7 @@ mingw-w64's implementation of POSIX threads for Windows.
|
||||
|
||||
%prep
|
||||
%setup -q -n winpthreads
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
# The build is trying to link with libpthread.a but it has no need
|
||||
|
Loading…
Reference in New Issue
Block a user