develooper Front page | perl.perl5.porters | Postings from January 2001

[PATCH] Change 6721 wasn't complete

Thread Next
From:
Radu Greab
Date:
January 6, 2001 17:37
Subject:
[PATCH] Change 6721 wasn't complete
Message ID:
14935.51288.811503.138966@ix.netsoft.ro

t/lib/gdbm.t still dumps core if LEAKTEST is defined and perl uses
system's malloc. The patch below is better than change 6721.


Thanks,
Radu Greab


--- ext/GDBM_File/GDBM_File.xs~	Sun Aug 20 22:47:54 2000
+++ ext/GDBM_File/GDBM_File.xs	Sun Jan  7 00:51:12 2001
@@ -56,7 +56,7 @@
 static void
 output_datum(pTHX_ SV *arg, char *str, int size)
 {
-#if !defined(MYMALLOC) || (defined(MYMALLOC) && defined(PERL_POLLUTE_MALLOC) && !defined(LEAKTEST))
+#if (!defined(MYMALLOC) || (defined(MYMALLOC) && defined(PERL_POLLUTE_MALLOC))) && !defined(LEAKTEST)
 	sv_usepvn(arg, str, size);
 #else
 	sv_setpvn(arg, str, size);

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