From ce70b6dc9582ccfe66b8bb80b37149047cd0bef4 Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Sun, 6 Oct 2013 10:19:31 +0200 Subject: [PATCH] Fix a heavy memory corruption in p()/print() If you free locally allocated ruby objects you're gonna have a BAAAD time --- binding-mri/binding-mri.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/binding-mri/binding-mri.cpp b/binding-mri/binding-mri.cpp index d70e939..802ac45 100644 --- a/binding-mri/binding-mri.cpp +++ b/binding-mri/binding-mri.cpp @@ -114,8 +114,6 @@ static void printP(int argc, VALUE *argv, } showMsg(RSTRING_PTR(dispString)); - - rb_str_free(dispString); } RB_METHOD(mriPrint)