develooper Front page | perl.perl5.porters | Postings from November 2005

[PATCH] fix wrong pool error in cygwin build

Thread Next
From:
Yitzchak Scott-Thoennes
Date:
November 27, 2005 00:29
Subject:
[PATCH] fix wrong pool error in cygwin build
Message ID:
20051127082918.GA2556@efn.org
Fixes:

panic: free from wrong pool at lib/lib_pm.PL line 6.

--- perl/cygwin/cygwin.c.orig	2005-09-23 08:41:05.000000000 -0700
+++ perl/cygwin/cygwin.c	2005-11-26 21:58:01.988361600 -0800
@@ -147,7 +147,7 @@ XS(Cygwin_cwd)
 	Perl_croak(aTHX_ "Usage: Cwd::cwd()");
     if((cwd = getcwd(NULL, -1))) {
 	ST(0) = sv_2mortal(newSVpv(cwd, 0));
-	safesysfree(cwd);
+	free(cwd);
 #ifndef INCOMPLETE_TAINTS
 	SvTAINTED_on(ST(0));
 #endif

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About