Permalink
Browse files

Flush all the filehandles when "destroying" the p5 interpreter.

  • Loading branch information...
pmurias committed Jan 16, 2012
1 parent 816e8f4 commit 5e23fcdb4b3c985e3d9295dcd46a2e7bfbba2dce
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/p5embed.c
View
@@ -40,11 +40,12 @@ SV* p5embed_eval(char* code) {
void p5embed_dispose()
{
/* Disable temorarly as it seems to cause segfaults */
- /*
+ /*
perl_destruct(my_perl);
perl_free(my_perl);
PERL_SYS_TERM();
*/
+ PerlIO_flush(NULL);
}

0 comments on commit 5e23fcd

Please sign in to comment.