dev-scheme/c-wrapper: fix finalizer of ffi_closure

Package-Manager: Portage-2.3.40, Repoman-2.3.9
This commit is contained in:
Akinori Hattori 2018-07-11 23:33:20 +09:00
parent ee0c8fbd90
commit a87a1d38d3
No known key found for this signature in database
GPG Key ID: D20944AD9A607DDF
2 changed files with 14 additions and 1 deletions

View File

@ -18,7 +18,10 @@ RDEPEND="dev-scheme/gauche
virtual/libffi"
DEPEND="${RDEPEND}"
PATCHES=( "${FILESDIR}"/${PN}-gentoo.patch )
PATCHES=(
"${FILESDIR}"/${PN}-closure.patch
"${FILESDIR}"/${PN}-gentoo.patch
)
HTML_DOCS=( doc/${PN}-ref{e,j}.html )
src_prepare() {

View File

@ -0,0 +1,10 @@
--- a/src/closure_alloc.c
+++ b/src/closure_alloc.c
@@ -100,6 +100,7 @@
++(node->n);
return;
}
+ node = node->next;
}
node = malloc(sizeof(FreeNode));